pub struct RetrieveOptions {
pub k: usize,
pub hops: u8,
pub max_distance: f32,
pub max_nodes: Option<usize>,
}Expand description
Options for retrieve_with.
Fields§
§k: usizeNumber of seed nodes returned by the vector search.
hops: u8BFS expansion depth from each seed node.
max_distance: f32Maximum cosine distance for a vector hit to qualify as a seed.
Hits with distance > max_distance are dropped before BFS expansion.
Default: f32::MAX (keep all k hits).
max_nodes: Option<usize>Hard cap on the total number of nodes in the returned subgraph.
BFS stops as soon as this limit is reached.
None means no cap.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RetrieveOptions
impl RefUnwindSafe for RetrieveOptions
impl Send for RetrieveOptions
impl Sync for RetrieveOptions
impl Unpin for RetrieveOptions
impl UnsafeUnpin for RetrieveOptions
impl UnwindSafe for RetrieveOptions
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