Skip to main content

Module embedder

Module embedder 

Source
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§

FixedEmbedder
Deterministic embedder that always returns the same vector. Useful in unit tests that need an Embedder but don’t care about the values.
SubprocessEmbedder
Embedder that talks to a long-lived Python subprocess over stdin/stdout.

Traits§

Embedder
Trait for converting text into dense float vectors.