Skip to main content

Module embedding

Module embedding 

Source
Expand description

Embedding provider trait and local implementation.

Structs§

LocalEmbedding
Local bag-of-words embedding for MVP (no external API needed). Uses TF-based sparse-to-dense mapping with a fixed dimension. Good enough for basic semantic search; replace with OpenAI/Cohere embeddings in production.

Traits§

EmbeddingProvider
Trait for computing text embeddings (vector representations).