Skip to main content

Module embed

Module embed 

Source
Expand description

Embedding generation for RAG pipelines

Structs§

EmbeddingConfig
Configuration for embedding generation
FastEmbedder
Production-ready semantic embedder using fastembed (ONNX Runtime)
MockEmbedder
Mock embedder for testing (uses simple hash-based vectors)
NemotronConfig
Configuration for NVIDIA Embed Nemotron 8B embedder
NemotronEmbedder
NVIDIA Embed Nemotron 8B embedder using realizar’s GGUF infrastructure
TfIdfEmbedder
TF-IDF based embedder (sparse-to-dense conversion)

Enums§

EmbeddingModelType
Available embedding models when embeddings feature is enabled
PoolingStrategy
Pooling strategy for token embeddings

Traits§

Embedder
Trait for embedding generation

Functions§

cosine_similarity
Compute cosine similarity between two vectors.
dot_product
Compute dot product between two vectors
euclidean_distance
Compute euclidean distance between two vectors