Expand description
Utility functions and helpers for common semantic search workflows
This module provides convenience functions that combine multiple features and simplify common patterns in semantic search applications.
Structs§
- Batch
Deletion Result - Result of a batch deletion operation
- Batch
Embedding Stats - Statistics for a batch embedding operation
- Batch
Index Result - Result of a batch index operation with statistics
- Health
Check Result - Health check result for a semantic router
- Index
Stats - Export index statistics to a JSON-serializable structure
Functions§
- average_
embedding - Calculate the average embedding from a set of embeddings
- batch_
delete - Delete multiple CIDs from a vector index in batch
- cosine_
similarity - Calculate cosine similarity between two embeddings
- create_
hybrid_ index_ from_ map - Create a hybrid index with metadata extracted from a CID mapping
- export_
index_ stats - health_
check - Perform a comprehensive health check on a vector index
- index_
with_ quality_ check - Validate and index embeddings in a single operation with quality checking
- normalize_
vector - Normalize a vector to unit length (L2 norm = 1)
- normalize_
vectors - Normalize a batch of vectors in place
- pairwise_
similarities - Calculate pairwise cosine similarities between a query and multiple embeddings
- validate_
embeddings - Validate a batch of embeddings and return quality reports