pub struct VectorStoreSearchResult {
pub file_id: Option<String>,
pub filename: Option<String>,
pub score: Option<f64>,
pub text: Option<Vec<String>>,
pub attributes: Option<Value>,
}Expand description
A search result of a vector store query.
Fields§
§file_id: Option<String>The ID of the file the result came from.
filename: Option<String>The filename of the file the result came from.
score: Option<f64>The relevance score of the result.
text: Option<Vec<String>>The matching text chunks.
attributes: Option<Value>The matching text chunks with their individual scores.
Trait Implementations§
Source§impl Clone for VectorStoreSearchResult
impl Clone for VectorStoreSearchResult
Source§fn clone(&self) -> VectorStoreSearchResult
fn clone(&self) -> VectorStoreSearchResult
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 VectorStoreSearchResult
impl Debug for VectorStoreSearchResult
Source§impl<'de> Deserialize<'de> for VectorStoreSearchResult
impl<'de> Deserialize<'de> for VectorStoreSearchResult
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 VectorStoreSearchResult
impl RefUnwindSafe for VectorStoreSearchResult
impl Send for VectorStoreSearchResult
impl Sync for VectorStoreSearchResult
impl Unpin for VectorStoreSearchResult
impl UnsafeUnpin for VectorStoreSearchResult
impl UnwindSafe for VectorStoreSearchResult
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