Expand description
Modules§
- gemini
- Google Gemini embedding provider. Uses the Generative Language API’s
embedContentendpoint withoutputDimensionalitysogemini-embedding-001(natively 3072-dim, Matryoshka-truncatable) returns the configured dimension. - ollama
- Ollama embedding provider (the default). Talks to a local Ollama server’s
/api/embedendpoint.bge-m3yields 1024-dimensional vectors.
Structs§
- Hash
Embedder - Feature-hashing embedder of a fixed dimensionality.
Traits§
- Embedder
- A source of embedding vectors. Implementations must be cheap to
cloneviaArcand safe to share across tasks.
Functions§
- from_
config - Build the embedder selected by
cfg.embed_provider.