pub enum CoreEmbeddingSource {
SuppliedByApplication,
LocalModel {
model_path: PathBuf,
model_id: String,
},
GeneratedColumn {
provider: String,
},
}Expand description
Where embedding values for a column originate.
Catalog metadata only: the storage engine never calls out to a vendor
based on this enum. Resolution goes through EmbeddingProviderRegistry.
Variants§
SuppliedByApplication
Application supplies Value::Embedding on write. Default for every
TypeId::Embedding column that omits an explicit source.
LocalModel
Local on-disk model (Kit-bundled or operator-installed). Inference
requires a registered provider that accepts this model_id.
Fields
GeneratedColumn
Named provider registered on the server/process
(EmbeddingProviderRegistry::register). May be local or remote; core
does not interpret the provider string.
Implementations§
Source§impl EmbeddingSource
impl EmbeddingSource
Sourcepub fn model_id(&self) -> Option<&str>
pub fn model_id(&self) -> Option<&str>
Model identity when known (for ANN generation metadata); None for
application-supplied vectors that carry no model stamp.
Sourcepub fn requires_provider(&self) -> bool
pub fn requires_provider(&self) -> bool
Whether the engine/provider layer is expected to materialize vectors (as opposed to the application writing them directly).
Trait Implementations§
Source§impl Clone for EmbeddingSource
impl Clone for EmbeddingSource
Source§fn clone(&self) -> EmbeddingSource
fn clone(&self) -> EmbeddingSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EmbeddingSource
impl Debug for EmbeddingSource
Source§impl Default for EmbeddingSource
impl Default for EmbeddingSource
Source§fn default() -> EmbeddingSource
fn default() -> EmbeddingSource
Source§impl<'de> Deserialize<'de> for EmbeddingSource
impl<'de> Deserialize<'de> for EmbeddingSource
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmbeddingSource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmbeddingSource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for EmbeddingSource
Source§impl PartialEq for EmbeddingSource
impl PartialEq for EmbeddingSource
Source§impl Serialize for EmbeddingSource
impl Serialize for EmbeddingSource
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for EmbeddingSource
Auto Trait Implementations§
impl Freeze for EmbeddingSource
impl RefUnwindSafe for EmbeddingSource
impl Send for EmbeddingSource
impl Sync for EmbeddingSource
impl Unpin for EmbeddingSource
impl UnsafeUnpin for EmbeddingSource
impl UnwindSafe for EmbeddingSource
Blanket Implementations§
impl<T> Allocation for T
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
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