pub struct NodeBuilder { /* private fields */ }
Expand description
Builder for Node
.
Implementations§
Source§impl NodeBuilder
impl NodeBuilder
Sourcepub fn path<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
pub fn path<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
File path associated with the node.
Sourcepub fn chunk<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn chunk<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Data chunk contained in the node.
Sourcepub fn vectors<VALUE: Into<HashMap<EmbeddedField, Embedding>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn vectors<VALUE: Into<HashMap<EmbeddedField, Embedding>>>( &mut self, value: VALUE, ) -> &mut Self
Optional vector representation of embedded data.
Sourcepub fn sparse_vectors<VALUE: Into<HashMap<EmbeddedField, SparseEmbedding>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn sparse_vectors<VALUE: Into<HashMap<EmbeddedField, SparseEmbedding>>>( &mut self, value: VALUE, ) -> &mut Self
Optional sparse vector representation of embedded data.
Sourcepub fn metadata<VALUE: Into<Metadata>>(&mut self, value: VALUE) -> &mut Self
pub fn metadata<VALUE: Into<Metadata>>(&mut self, value: VALUE) -> &mut Self
Metadata associated with the node.
Sourcepub fn embed_mode<VALUE: Into<EmbedMode>>(&mut self, value: VALUE) -> &mut Self
pub fn embed_mode<VALUE: Into<EmbedMode>>(&mut self, value: VALUE) -> &mut Self
Mode of embedding data Chunk and Metadata
Sourcepub fn original_size<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn original_size<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
Size of the input this node was originally derived from in bytes
Source§impl NodeBuilder
impl NodeBuilder
pub fn maybe_sparse_vectors( &mut self, sparse_vectors: Option<HashMap<EmbeddedField, SparseEmbedding>>, ) -> &mut Self
pub fn maybe_vectors( &mut self, vectors: Option<HashMap<EmbeddedField, Embedding>>, ) -> &mut Self
Trait Implementations§
Source§impl Clone for NodeBuilder
impl Clone for NodeBuilder
Source§fn clone(&self) -> NodeBuilder
fn clone(&self) -> NodeBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for NodeBuilder
impl RefUnwindSafe for NodeBuilder
impl Send for NodeBuilder
impl Sync for NodeBuilder
impl Unpin for NodeBuilder
impl UnwindSafe for NodeBuilder
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