pub struct FindOptions {
pub query: Option<String>,
pub label: Option<String>,
pub vector: Option<Vec<f32>>,
pub similar_to: Option<NodeSelector>,
pub semantic_query: Option<String>,
pub limit: usize,
pub space: Option<String>,
pub force_stale: bool,
}Expand description
Options for GraphForge::find.
Fields§
§query: Option<String>Optional text query.
label: Option<String>Node label filter.
vector: Option<Vec<f32>>Optional dense vector for similarity search.
similar_to: Option<NodeSelector>Optional existing graph node whose vector is read from the selected space.
semantic_query: Option<String>Optional text embedded with the selected space’s compatible provider contract.
limit: usizeMaximum number of results to return.
space: Option<String>Vector space identifier (e.g. "sbert").
force_stale: boolExplicitly allow the last complete substantially stale generation.
Trait Implementations§
Source§impl Clone for FindOptions
impl Clone for FindOptions
Source§fn clone(&self) -> FindOptions
fn clone(&self) -> FindOptions
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 FindOptions
impl Debug for FindOptions
Auto Trait Implementations§
impl Freeze for FindOptions
impl RefUnwindSafe for FindOptions
impl Send for FindOptions
impl Sync for FindOptions
impl Unpin for FindOptions
impl UnsafeUnpin for FindOptions
impl UnwindSafe for FindOptions
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