pub struct StoredChunk {
pub id: String,
pub dataset_id: String,
pub document_id: String,
pub title: String,
pub text: String,
pub metadata: Metadata,
pub content_hash: String,
pub vector: Vec<f32>,
}Expand description
A chunk as stored in a VectorStore.
Fields§
§id: StringUnique id within the store.
dataset_id: String§document_id: String§title: String§text: String§metadata: Metadata§content_hash: StringStable hash of dataset_id + text, used for de-duplication.
vector: Vec<f32>Trait Implementations§
Source§impl Clone for StoredChunk
impl Clone for StoredChunk
Source§impl Debug for StoredChunk
impl Debug for StoredChunk
Source§impl<'de> Deserialize<'de> for StoredChunk
impl<'de> Deserialize<'de> for StoredChunk
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 StoredChunk
impl PartialEq for StoredChunk
Source§impl Serialize for StoredChunk
impl Serialize for StoredChunk
impl StructuralPartialEq for StoredChunk
Auto Trait Implementations§
impl Forget for StoredChunk
impl Freeze for StoredChunk
impl Move for StoredChunk
impl RefUnwindSafe for StoredChunk
impl Send for StoredChunk
impl Sync for StoredChunk
impl Unpin for StoredChunk
impl UnsafeUnpin for StoredChunk
impl UnwindSafe for StoredChunk
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