#[non_exhaustive]pub struct VectorStoreSearchResult {
pub file_id: String,
pub filename: Option<String>,
pub score: Option<f64>,
pub content: Vec<Value>,
pub attributes: BTreeMap<String, Value>,
pub extra: BTreeMap<String, Value>,
}Expand description
EN: Single vector store search result. 中文:单个向量存储搜索结果。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file_id: StringEN: File id that produced the result. 中文:产生该结果的文件 ID。
filename: Option<String>EN: File name, when returned. 中文:文件名,如响应中存在。
score: Option<f64>EN: Search relevance score, when returned. 中文:搜索相关性分数,如响应中存在。
content: Vec<Value>EN: Result content blocks returned by the API. 中文:API 返回的结果内容块。
attributes: BTreeMap<String, Value>EN: File attributes returned with the result. 中文:结果附带的文件属性。
extra: BTreeMap<String, Value>EN: Additional fields preserved for forward compatibility. 中文:为前向兼容保留的额外字段。
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
Source§impl PartialEq for VectorStoreSearchResult
impl PartialEq for VectorStoreSearchResult
Source§fn eq(&self, other: &VectorStoreSearchResult) -> bool
fn eq(&self, other: &VectorStoreSearchResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VectorStoreSearchResult
impl Serialize for VectorStoreSearchResult
impl StructuralPartialEq for VectorStoreSearchResult
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