pub struct RetrieveRequest {
pub query: String,
pub channels: Vec<ChannelConfig>,
pub global_filters: Vec<StructuredFilter>,
pub top_k: usize,
pub namespace: Option<String>,
pub include_embeddings: bool,
pub query_preprocessing: Option<QueryPreprocessing>,
}Expand description
Multi-channel retrieval request.
Fields§
§query: StringSearch query string.
channels: Vec<ChannelConfig>Channel configurations for this request.
global_filters: Vec<StructuredFilter>Global filters applied across all channels.
Note on channel support: StructuredFilter values are currently only applied by the
metadata channel. The semantic, bm25, and graph channels silently ignore
global_filters in their current implementation.
top_k: usizeMaximum number of results after fusion.
namespace: Option<String>Optional namespace for scoping.
include_embeddings: boolWhether to include embedding vectors in results.
query_preprocessing: Option<QueryPreprocessing>Optional query preprocessing strategy.
Implementations§
Source§impl RetrieveRequest
impl RetrieveRequest
Sourcepub fn builder(query: impl Into<String>) -> RetrieveRequestBuilder
pub fn builder(query: impl Into<String>) -> RetrieveRequestBuilder
Create a new builder for RetrieveRequest.
Trait Implementations§
Source§impl Clone for RetrieveRequest
impl Clone for RetrieveRequest
Source§fn clone(&self) -> RetrieveRequest
fn clone(&self) -> RetrieveRequest
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 RetrieveRequest
impl Debug for RetrieveRequest
Source§impl<'de> Deserialize<'de> for RetrieveRequest
impl<'de> Deserialize<'de> for RetrieveRequest
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 RetrieveRequest
impl RefUnwindSafe for RetrieveRequest
impl Send for RetrieveRequest
impl Sync for RetrieveRequest
impl Unpin for RetrieveRequest
impl UnsafeUnpin for RetrieveRequest
impl UnwindSafe for RetrieveRequest
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