Table of Contents

Namespace Mythosia.AI.Rag.Embeddings

Classes

LocalEmbeddingProvider

Local embedding provider using feature hashing (hashing trick). Works without any external API key. Suitable for prototyping and small-scale use. Quality is lower than neural embeddings (OpenAI, etc.) but requires zero configuration.

OllamaEmbeddingProvider

IEmbeddingProvider implementation that calls the local Ollama embeddings API.

OpenAIEmbeddingProvider

IEmbeddingProvider implementation that calls the OpenAI Embeddings API. Uses the same HttpClient/API-key pattern as Mythosia.AI's OpenAIService.

VllmEmbeddingProvider