Module embedding

Module embedding 

Source
Expand description

The module defines the EmbeddingModel trait, which represents an embedding model that can generate embeddings for documents.

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.

Enums§

EmbeddingError

Traits§

EmbeddingModel
Trait for embedding models that can generate embeddings for documents.
EmbeddingModelDyn
ImageEmbeddingModel
Trait for embedding models that can generate embeddings for images.