Expand description
VectorIndexBuilder for constructing vector search indices.
The builder orchestrates content discovery, text extraction, batch embedding, and index population:
- Discover content files using glob patterns
- Parse frontmatter and content
- Call VectorExtractor to produce VectorDocuments
- Batch embed documents via EmbeddingProvider
- Insert into VectorBackend
§Two-Phase Build
- Phase 1: Discover + extract all documents (sync, CPU-bound)
- Phase 2: Batch embed + insert (async, may be I/O-bound)
Structs§
- Vector
Index Builder - Builder for constructing vector search indices.
Enums§
- Error
Handling - Options for handling errors during vector index building.
Functions§
- compute_
content_ hash - Compute a content hash for freshness checking.