pub struct SemanticParams {
pub query_vec: Vec<f32>,
pub top_k: usize,
pub unit_types: Vec<CodeUnitType>,
pub languages: Vec<Language>,
pub min_similarity: f32,
}Expand description
Parameters for Query 8: Semantic Search.
Fields§
§query_vec: Vec<f32>Query feature vector.
top_k: usizeMaximum number of results.
unit_types: Vec<CodeUnitType>Optional type filter.
languages: Vec<Language>Optional language filter.
min_similarity: f32Minimum similarity threshold (0.0–1.0).
Trait Implementations§
Source§impl Clone for SemanticParams
impl Clone for SemanticParams
Source§fn clone(&self) -> SemanticParams
fn clone(&self) -> SemanticParams
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 moreAuto Trait Implementations§
impl Freeze for SemanticParams
impl RefUnwindSafe for SemanticParams
impl Send for SemanticParams
impl Sync for SemanticParams
impl Unpin for SemanticParams
impl UnsafeUnpin for SemanticParams
impl UnwindSafe for SemanticParams
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