pub struct VectorStore {
pub enabled: bool,
pub kind: VectorKind,
pub path: String,
pub database_url: String,
pub prefix: Option<String>,
}Expand description
Vector store configuration.
Vector stores hold dense embeddings keyed by chunk id, with logical collections
mapped to physical tables that embed (model_id, dim) in the name.
Fields§
§enabled: boolWhether the vector store is enabled.
kind: VectorKindBackend implementation.
path: StringFilesystem path to the LanceDB dataset directory (LanceDB only).
database_url: StringPostgres connection URL (pgvector only). Falls back to path when empty.
prefix: Option<String>Optional prefix for namespacing.
Trait Implementations§
Source§impl Clone for VectorStore
impl Clone for VectorStore
Source§fn clone(&self) -> VectorStore
fn clone(&self) -> VectorStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VectorStore
impl Debug for VectorStore
Source§impl Default for VectorStore
impl Default for VectorStore
Source§fn default() -> VectorStore
fn default() -> VectorStore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VectorStore
impl<'de> Deserialize<'de> for VectorStore
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VectorStore
impl RefUnwindSafe for VectorStore
impl Send for VectorStore
impl Sync for VectorStore
impl Unpin for VectorStore
impl UnsafeUnpin for VectorStore
impl UnwindSafe for VectorStore
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