Back to directory

EmbeddingGemma.NET

A .NET binding for Google DeepMind's EmbeddingGemma-300m model that runs fully local, offline text embedding with no API key or cloud dependency, distributed as a single NuGet package for ASP.NET Core and Microsoft Semantic Kernel.

EmbeddingGemma.NET

EmbeddingGemma.NET brings Google DeepMind's EmbeddingGemma-300m embedding model into .NET applications through ONNX Runtime, running entirely on-device so no embedding calls or data leave the machine. A single NuGet package registers the service either through the plain IServiceCollection used by ASP.NET Core and other generic .NET hosts, or through Microsoft Semantic Kernel's IKernelBuilder.

EmbeddingGemma is reported as the top-ranked open multilingual embedding model under 500 million parameters on the MTEB benchmark, supports over 100 languages, can run on low-end devices without a GPU with as little as 4 GB of RAM, and exposes 15 built-in task types that automatically apply the correct prompt prefix for a given use, such as retrieval or classification.

Before first use, the ONNX model and tokenizer files must be downloaded to disk, either with a bundled PowerShell script or by manually fetching five listed files, including a roughly 1.2 GB weights file, into a single directory.

More in RAG

See all 540
  • ai·rete·rag

    ai-rete-rag.com

    A platform that pairs a Rete rule engine with retrieval-augmented generation, so deterministic rules decide an outcome and grounded retrieval explains the decision in plain language.

  • Xtriever

    github.com

    A hybrid retrieval engine for retrieval-augmented generation, written in Rust to run on-device on a phone or a laptop, combining lexical BM25 search, dense embedding search, reciprocal-rank fusion and cross-encoder re-ranking with no server.

  • FileFlux

    github.com

    A .NET library that turns PDF, DOCX, HWP and other documents into optimized chunks for RAG systems, through a five-stage pipeline built on high-performance Rust FFI readers.