pub struct EmbeddingSpaceInfo {
pub space_id: u64,
pub name: String,
pub dims: u32,
pub similarity: Similarity,
}Expand description
Immutable metadata for an embedding space.
Fields§
§space_id: u64Dense id of the space.
name: StringStable, opaque index name. The engine carries vectors without any notion of embedding source (managed/external/model) — those are control-plane concepts. Legacy spaces (persisted without this field) default to empty.
dims: u32Dimensionality of vectors in the space.
similarity: SimilaritySimilarity metric for the space. Older persisted spaces without this field default to cosine.
Trait Implementations§
Source§impl Clone for EmbeddingSpaceInfo
impl Clone for EmbeddingSpaceInfo
Source§impl Debug for EmbeddingSpaceInfo
impl Debug for EmbeddingSpaceInfo
Source§impl<'de> Deserialize<'de> for EmbeddingSpaceInfo
impl<'de> Deserialize<'de> for EmbeddingSpaceInfo
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 EmbeddingSpaceInfo
Source§impl PartialEq for EmbeddingSpaceInfo
impl PartialEq for EmbeddingSpaceInfo
Source§impl Serialize for EmbeddingSpaceInfo
impl Serialize for EmbeddingSpaceInfo
impl StructuralPartialEq for EmbeddingSpaceInfo
Auto Trait Implementations§
impl Freeze for EmbeddingSpaceInfo
impl RefUnwindSafe for EmbeddingSpaceInfo
impl Send for EmbeddingSpaceInfo
impl Sync for EmbeddingSpaceInfo
impl Unpin for EmbeddingSpaceInfo
impl UnsafeUnpin for EmbeddingSpaceInfo
impl UnwindSafe for EmbeddingSpaceInfo
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<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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.