pub struct EmbeddingServiceConfig {
pub batch_size: usize,
pub circuit_breaker: CircuitBreakerConfig,
}Expand description
Embedding service configuration.
Used by crate::EmbeddingService for standalone embedding passes.
Contains only the settings relevant to embedding API calls.
Fields§
§batch_size: usizeMaximum number of texts per embedding API batch call.
The actual batch size is min(this, provider.max_batch_size()).
circuit_breaker: CircuitBreakerConfigCircuit breaker configuration for embedding API resilience.
Trait Implementations§
Source§impl Clone for EmbeddingServiceConfig
impl Clone for EmbeddingServiceConfig
Source§fn clone(&self) -> EmbeddingServiceConfig
fn clone(&self) -> EmbeddingServiceConfig
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 moreAuto Trait Implementations§
impl Freeze for EmbeddingServiceConfig
impl RefUnwindSafe for EmbeddingServiceConfig
impl Send for EmbeddingServiceConfig
impl Sync for EmbeddingServiceConfig
impl Unpin for EmbeddingServiceConfig
impl UnsafeUnpin for EmbeddingServiceConfig
impl UnwindSafe for EmbeddingServiceConfig
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