pub enum EmbeddingSource {
SuppliedByApplication,
LocalModel {
model_id: String,
model_path: PathBuf,
},
GeneratedColumn {
provider: String,
},
ConfiguredModel {
provider_id: String,
model_id: String,
model_version: String,
},
GeneratedColumnSpec {
spec: GeneratedEmbeddingSpec,
},
}Variants§
SuppliedByApplication
LocalModel
Compatibility shape for 0.60.3 Kit clients. The node-local path is accepted in memory but never serialized into replicated schema.
GeneratedColumn
Compatibility shape for explicit Kit embedding calls. Ordinary writes do not materialize this legacy source.
ConfiguredModel
A local provider resolved from node configuration. No path is stored.
GeneratedColumnSpec
Fields
§
spec: GeneratedEmbeddingSpecImplementations§
Trait Implementations§
Source§impl Clone for EmbeddingSource
impl Clone for EmbeddingSource
Source§fn clone(&self) -> EmbeddingSource
fn clone(&self) -> EmbeddingSource
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 Debug for EmbeddingSource
impl Debug for EmbeddingSource
Source§impl Default for EmbeddingSource
impl Default for EmbeddingSource
Source§fn default() -> EmbeddingSource
fn default() -> EmbeddingSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmbeddingSource
impl<'de> Deserialize<'de> for EmbeddingSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EmbeddingSource
Source§impl PartialEq for EmbeddingSource
impl PartialEq for EmbeddingSource
Source§impl Serialize for EmbeddingSource
impl Serialize for EmbeddingSource
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§
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
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<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 more