pub struct EmbeddingChunk {
pub id: String,
pub item_id: String,
pub chunk_index: i32,
pub chunk_text: String,
pub embedding: Vec<f32>,
pub dimensions: usize,
pub provider: String,
pub model: String,
pub created_at: i64,
}Expand description
An embedding chunk record.
Embeddings are stored as BLOB (binary f32 arrays) for efficiency. Large context items may be split into multiple chunks for better semantic coverage.
Fields§
§id: StringUnique ID for this chunk.
item_id: StringThe context item this chunk belongs to.
chunk_index: i32Chunk index (0 for single-chunk items).
chunk_text: StringThe text that was embedded.
embedding: Vec<f32>The embedding vector (f32 values).
dimensions: usizeNumber of dimensions in the embedding.
provider: StringProvider that generated this embedding (e.g., “ollama”).
model: StringModel used for embedding (e.g., “nomic-embed-text”).
created_at: i64Unix timestamp (milliseconds) when created.
Trait Implementations§
Source§impl Clone for EmbeddingChunk
impl Clone for EmbeddingChunk
Source§fn clone(&self) -> EmbeddingChunk
fn clone(&self) -> EmbeddingChunk
Returns a duplicate of the value. Read more
1.0.0 · 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 EmbeddingChunk
impl Debug for EmbeddingChunk
Auto Trait Implementations§
impl Freeze for EmbeddingChunk
impl RefUnwindSafe for EmbeddingChunk
impl Send for EmbeddingChunk
impl Sync for EmbeddingChunk
impl Unpin for EmbeddingChunk
impl UnsafeUnpin for EmbeddingChunk
impl UnwindSafe for EmbeddingChunk
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more