pub struct VectorConfig {
pub db_type: String,
pub collection: String,
pub query: String,
pub top_k: usize,
pub score_threshold: Option<f64>,
}Expand description
Configuration for vector database retrieval
Fields§
§db_type: StringVector database type (e.g., “qdrant”, “pgvector”)
collection: StringCollection/table name
query: StringQuery text or reference to previous node output
top_k: usizeNumber of results to retrieve
score_threshold: Option<f64>Minimum similarity score threshold
Trait Implementations§
Source§impl Clone for VectorConfig
impl Clone for VectorConfig
Source§fn clone(&self) -> VectorConfig
fn clone(&self) -> VectorConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 VectorConfig
impl Debug for VectorConfig
Source§impl<'de> Deserialize<'de> for VectorConfig
impl<'de> Deserialize<'de> for VectorConfig
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 VectorConfig
impl RefUnwindSafe for VectorConfig
impl Send for VectorConfig
impl Sync for VectorConfig
impl Unpin for VectorConfig
impl UnwindSafe for VectorConfig
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