Expand description
Embedding provider trait and local implementation.
Structs§
- Local
Embedding - 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§
- Embedding
Provider - Trait for computing text embeddings (vector representations).