Skip to content

Commit

Permalink
docs(indexer): add documentation for build_attributes and build_chunk…
Browse files Browse the repository at this point in the history
…_attributes methods
  • Loading branch information
wsxiaoys committed Oct 31, 2024
1 parent 9c8e6fd commit 8e67917
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/tabby-index/src/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ pub trait ToIndexId {

#[async_trait::async_trait]
pub trait IndexAttributeBuilder<T>: 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,
Expand Down

0 comments on commit 8e67917

Please sign in to comment.