pub struct SearchEngineBuilder { /* private fields */ }Implementations§
Source§impl SearchEngineBuilder
impl SearchEngineBuilder
Sourcepub fn audio_extractor(self, extractor: AudioExtractor) -> Self
pub fn audio_extractor(self, extractor: AudioExtractor) -> Self
Explicit audio extraction only; never registered with preview dispatch.
Sourcepub fn extractor(self, extractor: impl Extractor + 'static) -> Self
pub fn extractor(self, extractor: impl Extractor + 'static) -> Self
Register an extractor before the built-in text fallback. Custom extractors are tried in registration order; errors never fall through.
Sourcepub fn provider(self, provider: impl ResourceProvider + 'static) -> Self
pub fn provider(self, provider: impl ResourceProvider + 'static) -> Self
Resource access; defaults to the local filesystem provider.
pub fn embedder(self, embedder: impl Embedder + 'static) -> Self
Sourcepub fn cache(self, cache: impl EmbeddingCache + 'static) -> Self
pub fn cache(self, cache: impl EmbeddingCache + 'static) -> Self
Where vectors are kept. Defaults to an in-memory cache, i.e. ephemeral search.
pub fn segmenter(self, segmenter: TextSegmenter) -> Self
Sourcepub fn batch_size(self, n: usize) -> Self
pub fn batch_size(self, n: usize) -> Self
How many segments are sent to the embedder per call.
Sourcepub fn max_audio_duration_secs(self, seconds: u64) -> Self
pub fn max_audio_duration_secs(self, seconds: u64) -> Self
Inclusive canonical audio duration limit; independent of vector identity.
Sourcepub fn cache_profile(&self, model: ModelIdentity) -> CacheProfile
pub fn cache_profile(&self, model: ModelIdentity) -> CacheProfile
Describe vector identity without constructing an engine or opening a cache.
pub fn build(self) -> Result<SearchEngine>
Auto Trait Implementations§
impl !RefUnwindSafe for SearchEngineBuilder
impl !Sync for SearchEngineBuilder
impl !UnwindSafe for SearchEngineBuilder
impl Freeze for SearchEngineBuilder
impl Send for SearchEngineBuilder
impl Unpin for SearchEngineBuilder
impl UnsafeUnpin for SearchEngineBuilder
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