OptionalbatchBatch delete by document IDs (more efficient than per-file delete when IDs are known)
OptionalcloseOptional: close/disconnect from the store (important for file-backed stores like LanceDB)
Delete documents by source file
OptionaldeleteOptional: delete entire collection
OptionaldeleteOptional: delete chunks for sourceFile whose id is NOT in keepHashes. Called after uploading new chunks to remove stale embeddings without wiping the whole file first (enables existingHashes caching to work).
OptionalexistingOptional: check which of the given denseTextHash values already exist in the store. Used by the orchestrator to skip re-embedding unchanged chunks across runs. Returns the subset of hashes that are already stored.
Get current state (sourceFile → commitHash) for change detection
Optionalcollection: stringOptionalgetOptional: get vector index quality metrics
OptionalgetOptional: get query performance report
OptionalgetOptional: get store statistics
Initialize store (create tables, indexes, etc.)
OptionallistOptional: list all stored documents (without vectors by default for efficiency)
Optionalopts: { includeVectors?: boolean; limit?: number; offset?: number }OptionalreadOptional: read embedder metadata stored alongside the index
Search by embedding vector
Optionalcollection: stringOptionaloptions: SearchOptionsOptionalwriteOptional: write embedder metadata alongside the index
Store name