diff --git a/crates/tabby-index/src/indexer.rs b/crates/tabby-index/src/indexer.rs index c0e3e049097b..646a917b1367 100644 --- a/crates/tabby-index/src/indexer.rs +++ b/crates/tabby-index/src/indexer.rs @@ -36,7 +36,10 @@ pub trait ToIndexId { #[async_trait::async_trait] pub trait IndexAttributeBuilder: Send + Sync { + /// Build document level attributes, these attributes are only stored but not indexed. async fn build_attributes(&self, document: &T) -> serde_json::Value; + + /// Build chunk level attributes, these attributes are stored and indexed. async fn build_chunk_attributes( &self, document: &T,