pub trait EmbeddingModel {
// Required method
fn metadata(&self) -> EmbeddingModelMetadata;
}
Expand description
§EmbeddingModel
This trait is used for methods to understand the requirements set out by which embedding model is being used such as embedding dimensions and max tokens
Required Methods§
fn metadata(&self) -> EmbeddingModelMetadata
Implementors§
impl EmbeddingModel for OpenAIEmbeddingModel
Implementation of the EmbeddingModel trait for OpenAIEmbeddingModel This just sets out the requirements for each of the OpenAI models. This can then be used by things such as stores to understand what size vectors it has to store.