Expand description
Vector-store insertion and similarity-search interfaces.
VectorStoreIndex implementations also implement PortableTool when their
filter is deserializable and uses JSON values.
use rig_core::vector_store::builder::InMemoryVectorStoreBuilder;
let store = InMemoryVectorStoreBuilder::<String>::new().build();Re-exports§
pub use request::VectorSearchRequest;
Modules§
- builder
- Configuration builder for the in-memory vector store.
- in_
memory_ store - In-memory vector storage with cosine scoring and optional approximate candidates.
- lsh
- Random-projection hashing for approximate vector-search candidates.
- request
- Vector-search requests and composable metadata filters.
Structs§
Enums§
- Index
Strategy - Candidate-selection strategy for the in-memory vector store.
- Vector
Store Error - Errors from vector store operations.
Traits§
- Insert
Documents - Trait for inserting documents and embeddings into a vector store.
- Vector
Store Index - Trait for querying a vector store by similarity.
Functions§
- flatten_
embedded - Serializes each document to JSON once, then applies
fto every(document, embedding)pair, flattening the results into a single vector.