pub struct TextQueryResponse {
pub results: Vec<TextSearchResult>,
pub model: String,
pub embedding_time_ms: u64,
pub search_time_ms: u64,
}Expand description
Response from text-based query
Fields§
§results: Vec<TextSearchResult>Search results with similarity scores
model: StringEmbedding model used
embedding_time_ms: u64Time taken for embedding generation (ms)
search_time_ms: u64Time taken for search (ms)
Trait Implementations§
Source§impl Debug for TextQueryResponse
impl Debug for TextQueryResponse
Source§impl<'de> Deserialize<'de> for TextQueryResponse
impl<'de> Deserialize<'de> for TextQueryResponse
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 TextQueryResponse
impl RefUnwindSafe for TextQueryResponse
impl Send for TextQueryResponse
impl Sync for TextQueryResponse
impl Unpin for TextQueryResponse
impl UnsafeUnpin for TextQueryResponse
impl UnwindSafe for TextQueryResponse
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