pub struct IndexConfig {
pub dims: usize,
pub embed: Box<dyn EmbeddingFunc>,
pub fields: Option<Vec<String>>,
}Expand description
Vector index configuration
Configure vector similarity search on a store by providing an
EmbeddingFunc implementation and the embedding dimension count.
Fields§
§dims: usizeEmbedding dimensions
embed: Box<dyn EmbeddingFunc>Embedding function for computing vectors from text
fields: Option<Vec<String>>Fields to index (None indexes all text fields)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for IndexConfig
impl !UnwindSafe for IndexConfig
impl Freeze for IndexConfig
impl Send for IndexConfig
impl Sync for IndexConfig
impl Unpin for IndexConfig
impl UnsafeUnpin for IndexConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more