pub struct TextQueryRequest {
pub text: String,
pub top_k: usize,
pub filter: Option<FilterExpression>,
pub include_vectors: bool,
pub include_text: bool,
pub model: Option<String>,
}Expand description
Request for text-based query (auto-embedded)
Fields§
§text: StringThe query text to search for
top_k: usizeNumber of results to return
filter: Option<FilterExpression>Optional filter to apply
include_vectors: boolWhether to include vectors in response
include_text: boolWhether to include the original text in response (if stored in metadata)
model: Option<String>Embedding model to use (optional, must match upsert model)
Trait Implementations§
Source§impl Debug for TextQueryRequest
impl Debug for TextQueryRequest
Source§impl<'de> Deserialize<'de> for TextQueryRequest
impl<'de> Deserialize<'de> for TextQueryRequest
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 TextQueryRequest
impl RefUnwindSafe for TextQueryRequest
impl Send for TextQueryRequest
impl Sync for TextQueryRequest
impl Unpin for TextQueryRequest
impl UnsafeUnpin for TextQueryRequest
impl UnwindSafe for TextQueryRequest
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