pub struct NodeEmbedding {
pub vector: Option<Vec<f32>>,
pub input_hash: String,
}Expand description
What the Embedding Coordinator decided about one node, for the store to
write. Index-aligned with IngestRequest::nodes — the same convention
EmbedResponse::vectors uses, and for the same reason: any other
association would have to be keyed on something a batch may legitimately
repeat.
Fields§
§vector: Option<Vec<f32>>The vector, or None when this request did not ask for embedding.
input_hash: StringCanonical hash of the text this node embeds from, computed whether or not it was embedded. It is what tells a later ingest whether a preserved vector still describes the node — the difference between a preserved vector and a stale one.
Implementations§
Trait Implementations§
Source§impl Clone for NodeEmbedding
impl Clone for NodeEmbedding
Source§impl Debug for NodeEmbedding
impl Debug for NodeEmbedding
Source§impl PartialEq for NodeEmbedding
impl PartialEq for NodeEmbedding
impl StructuralPartialEq for NodeEmbedding
Auto Trait Implementations§
impl Freeze for NodeEmbedding
impl RefUnwindSafe for NodeEmbedding
impl Send for NodeEmbedding
impl Sync for NodeEmbedding
impl Unpin for NodeEmbedding
impl UnsafeUnpin for NodeEmbedding
impl UnwindSafe for NodeEmbedding
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