Configuration
Embeddings are configured via options when opening the database:Distance metrics
PutEmbedding
Store a vector embedding for a cell coordinate.EmbeddingDimension. HNSW graph is maintained automatically.
GetEmbedding
Retrieve the vector embedding for a cell coordinate.DeleteEmbedding
Remove an embedding. Idempotent.SearchByEmbedding
HNSW-accelerated nearest-neighbor search with flat-scan fallback. Returns top-K results sorted by score.MaxResults— Maximum results to return (default 10)MinScore— Minimum similarity threshold
Coord— Packed coordinate of the matching cellScore— Similarity score
ReindexEmbeddings
Bulk recompute all embeddings via a user-supplied function. Intended for model changes.Integration with query engine
CellQuery.Embedding and CellSearchConfig.Embedding trigger ANN-accelerated seed selection in QueryCells / SearchCells. Embedding similarity is added to the composite relevance score; all other predicates (tags, temporal, spatial) apply as post-filters.
Errors
Cascade behavior
DeleteCell cascades to remove the cell’s embedding and HNSW node automatically.