pub struct RemoteEmbeddingProvider { /* private fields */ }Implementations§
Source§impl RemoteEmbeddingProvider
impl RemoteEmbeddingProvider
pub fn new( config: RemoteEmbeddingConfig, secrets: Arc<dyn EmbeddingSecretResolver>, ) -> Result<Self, EmbeddingError>
Trait Implementations§
Source§impl Clone for RemoteEmbeddingProvider
impl Clone for RemoteEmbeddingProvider
Source§fn clone(&self) -> RemoteEmbeddingProvider
fn clone(&self) -> RemoteEmbeddingProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl EmbeddingProvider for RemoteEmbeddingProvider
impl EmbeddingProvider for RemoteEmbeddingProvider
fn provider_id(&self) -> &str
fn model_id(&self) -> &str
fn model_version(&self) -> &str
fn dimension(&self) -> u32
fn normalization(&self) -> EmbeddingNormalization
fn preprocessing_version(&self) -> &str
fn execution_mode(&self) -> ProviderExecutionMode
fn health(&self) -> ProviderHealth
Source§fn embed(
&self,
_request: EmbeddingRequest<'_>,
) -> Result<EmbeddingResponse, EmbeddingError>
fn embed( &self, _request: EmbeddingRequest<'_>, ) -> Result<EmbeddingResponse, EmbeddingError>
Controlled synchronous inference used by transactional generated
columns. Implementations must checkpoint during long work.
Source§fn embed_async<'a>(
&'a self,
request: EmbeddingRequest<'a>,
) -> EmbeddingFuture<'a>
fn embed_async<'a>( &'a self, request: EmbeddingRequest<'a>, ) -> EmbeddingFuture<'a>
Async transport hook for remote providers. The default is suitable only
for short cooperative local inference; heavy local implementations must
override this and use a bounded blocking executor.
fn provider_version(&self) -> &str
fn model_artifact_sha256(&self) -> [u8; 32]
fn tokenizer_sha256(&self) -> [u8; 32]
fn preprocessing_sha256(&self) -> [u8; 32]
fn semantic_identity(&self) -> EmbeddingProviderRef
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteEmbeddingProvider
impl !UnwindSafe for RemoteEmbeddingProvider
impl Freeze for RemoteEmbeddingProvider
impl Send for RemoteEmbeddingProvider
impl Sync for RemoteEmbeddingProvider
impl Unpin for RemoteEmbeddingProvider
impl UnsafeUnpin for RemoteEmbeddingProvider
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request