Expand description
The module defines the EmbeddingModel and ImageEmbeddingModel traits, which represent embedding models that can generate embeddings for text documents and images.
The module also defines the Embedding struct, which represents a single document embedding.
Finally, the module defines the EmbeddingError enum, which represents various errors that can occur during embedding generation or processing.
Structs§
- Embedding
- Struct that holds a single document and its embedding.
- Embedding
Response - Response from an embedding request containing the embeddings and token usage.
Enums§
- Embedding
Error - Errors returned by embedding models.
Traits§
- Embedding
Model - Trait for embedding models that can generate embeddings for documents.
- Image
Embedding Model - Trait for embedding models that can generate embeddings for images.