pub enum SphereQLQuery<'a> {
Nearest {
k: usize,
},
SimilarAbove {
min_cosine: f64,
},
ConceptPath {
source_id: &'a str,
target_id: &'a str,
graph_k: usize,
},
DetectGlobs {
k: Option<usize>,
max_k: usize,
},
LocalManifold {
neighborhood_k: usize,
},
CategoryConceptPath {
source_category: &'a str,
target_category: &'a str,
},
CategoryNeighbors {
category: &'a str,
k: usize,
},
DrillDown {
category: &'a str,
k: usize,
},
CategoryStats,
}Expand description
Typed query request.
Variants§
Nearest
Find the k nearest neighbors to the query embedding.
SimilarAbove
Find all neighbors within a cosine similarity threshold.
ConceptPath
Find the shortest concept path between two indexed items.
DetectGlobs
Detect concept globs. k=None for auto-detection.
LocalManifold
Fit a local manifold around the query point.
CategoryConceptPath
Find the shortest path between two categories through the category graph.
CategoryNeighbors
Find the k nearest neighbor categories to the given category.
DrillDown
Drill down into a category: k-NN within the category, using the inner sphere’s projection if available.
CategoryStats
Get summary statistics for all categories and inner spheres.
Auto Trait Implementations§
impl<'a> Freeze for SphereQLQuery<'a>
impl<'a> RefUnwindSafe for SphereQLQuery<'a>
impl<'a> Send for SphereQLQuery<'a>
impl<'a> Sync for SphereQLQuery<'a>
impl<'a> Unpin for SphereQLQuery<'a>
impl<'a> UnsafeUnpin for SphereQLQuery<'a>
impl<'a> UnwindSafe for SphereQLQuery<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more