pub struct EmbedManyBuilder<M, V, Val> { /* private fields */ }Expand description
Builder for embedding multiple values
Implementations§
Source§impl<Val> EmbedManyBuilder<(), (), Val>
impl<Val> EmbedManyBuilder<(), (), Val>
Source§impl<M, V, Val> EmbedManyBuilder<M, V, Val>
impl<M, V, Val> EmbedManyBuilder<M, V, Val>
Sourcepub fn retry_policy(self, retry_policy: RetryPolicy) -> Self
pub fn retry_policy(self, retry_policy: RetryPolicy) -> Self
Set custom retry policy
Sourcepub fn max_parallel_calls(self, max: usize) -> Self
pub fn max_parallel_calls(self, max: usize) -> Self
Set maximum number of parallel API calls (default: unlimited)
Source§impl<V, Val> EmbedManyBuilder<(), V, Val>
impl<V, Val> EmbedManyBuilder<(), V, Val>
Sourcepub fn model<Mod: EmbeddingModel<Val> + 'static>(
self,
model: Mod,
) -> EmbedManyBuilder<Arc<dyn EmbeddingModel<Val>>, V, Val>
pub fn model<Mod: EmbeddingModel<Val> + 'static>( self, model: Mod, ) -> EmbedManyBuilder<Arc<dyn EmbeddingModel<Val>>, V, Val>
Set the embedding model
Source§impl<M, Val> EmbedManyBuilder<M, (), Val>
impl<M, Val> EmbedManyBuilder<M, (), Val>
Sourcepub fn values(self, values: Vec<Val>) -> EmbedManyBuilder<M, Vec<Val>, Val>
pub fn values(self, values: Vec<Val>) -> EmbedManyBuilder<M, Vec<Val>, Val>
Set the values to embed
Source§impl<Val> EmbedManyBuilder<Arc<dyn EmbeddingModel<Val>>, Vec<Val>, Val>
impl<Val> EmbedManyBuilder<Arc<dyn EmbeddingModel<Val>>, Vec<Val>, Val>
Sourcepub async fn execute(self) -> Result<EmbedManyResult<Val>, EmbedError>
pub async fn execute(self) -> Result<EmbedManyResult<Val>, EmbedError>
Execute the embedding
Trait Implementations§
Auto Trait Implementations§
impl<M, V, Val> Freeze for EmbedManyBuilder<M, V, Val>
impl<M, V, Val> RefUnwindSafe for EmbedManyBuilder<M, V, Val>
impl<M, V, Val> Send for EmbedManyBuilder<M, V, Val>
impl<M, V, Val> Sync for EmbedManyBuilder<M, V, Val>
impl<M, V, Val> Unpin for EmbedManyBuilder<M, V, Val>
impl<M, V, Val> UnwindSafe for EmbedManyBuilder<M, V, Val>
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