Expand description
Embedding abstraction for the RAG pipeline.
Provides a trait-based interface so the engine is not coupled to any
specific embedding backend. In production you’ll typically wrap a
Python subprocess or an HTTP API; in tests you can use FixedEmbedder.
Structs§
- Fixed
Embedder - Deterministic embedder that always returns the same vector.
Useful in unit tests that need an
Embedderbut don’t care about the values. - Subprocess
Embedder - Embedder that talks to a long-lived Python subprocess over stdin/stdout.
Traits§
- Embedder
- Trait for converting text into dense float vectors.