No GPU. No embedding API. No external vector database. Just Rust, a lightweight embedding model, and some deliberate engineering trade-offs.

Building a RAG system often means assembling several independent components:

  • A parser to extract content from documents.
  • An embedding model, usually running on a GPU or behind an API.
  • A vector database for semantic similarity.
  • A keyword search engine.
  • A reranker to improve relevance.
  • A context builder to prepare retrieved information for an LLM.

Each component works. The problem is the amount of infrastructure required to make them work together.

We started asking a different question:

What if the entire retrieval pipeline could run inside a single process on an ordinary CPU?

That question led us to build SynRAG, a self-hosted retrieval engine written in Rust, with its own multilingual embedding model called Synapse.

The result is a roughly 3 MB engine binary, an 86 MB embedding model, and a retrieval pipeline that doesn't require a GPU.

We recently published the first public version.

GitHub: https://github.com/Synlabs-ai/synrag

1. The 1.6-second experiment

Let's start with the most interesting result.

We used FiQA, a public financial question-answering retrieval dataset containing 57,638 relatively short documents, approximately 44 MB of text.

The benchmark measured the time from process startup until the entire collection became searchable. It included reading the data, loading the model, generating embeddings, and constructing the search indexes.

Our test machine:

  • AMD Ryzen 5 7500F — 6 cores / 12 threads
  • 31 GB RAM
  • Linux
  • No GPU used by SynRAG

Here is what we measured:

System Time until searchable Memory
SynRAG BM25 only 0.45 s 325 MB
SynRAG BM25 + Synapse 1.6 s 443 MB
SynRAG full indexing mode 4.8 s 475 MB
Tantivy + multilingual Model2Vec 2.8 s 1.85 GB
Elasticsearch BM25 12.7 s 4.9 GB
EmbeddingGemma on RTX 5060 Ti 282 s 2.8 GB RAM + 5.6 GB VRAM

These are our measurements under the configurations documented in the repository. They are not universal performance guarantees.

Also, an important qualification: 57,638 FiQA documents are not 57,638 long PDFs. The corpus is only 44 MB. Indexing time depends heavily on document size, parsing complexity, and the chosen retrieval mode.

But this experiment demonstrates something useful: a complete hybrid retrieval index can become searchable in seconds without GPU acceleration.

2. Why we didn't use a conventional transformer for embeddings

For many RAG applications, generating embeddings is one of the most computationally expensive steps.

Transformer-based embedding models can produce excellent representations, but their inference cost becomes noticeable when indexing hundreds of thousands or millions of documents.

Our goal wasn't to beat every transformer on retrieval quality.

It was to explore a different performance-quality trade-off.

We developed Synapse, a compact multilingual encoder distilled from EmbeddingGemma.

Some characteristics:

  • 21.3 million parameters
  • 256-dimensional embeddings
  • A convolutional architecture with a local token window and a global gate
  • Approximately 5,000 multiplications per token in the benchmarked configuration
  • CPU-native inference

On our six-core machine, Synapse processed approximately 51,600 short FiQA-sized documents per second.

That number needs context.

Static embedding approaches such as Model2Vec can be equally fast or faster. In our tests, multilingual Model2Vec reached about 56,400 documents per second, while its English-only variant was dramatically faster.

So raw embedding throughput isn't our unique advantage.

The design is about what happens when a lightweight semantic representation is combined with traditional lexical retrieval.

3. We kept BM25 for a reason

Semantic search and keyword search solve different problems.

Imagine searching a collection of technical documents for:

"What caused the WAL recovery failure?"

Exact terms such as WAL, error identifiers, function names, and configuration keys can be extremely important.

A semantic model may understand the general meaning, but BM25 can preserve exact lexical matches that shouldn't be lost.

Now consider:

"How can we restore the database after an unexpected shutdown?"

Here, semantic similarity can retrieve relevant material even if the documents use different terminology.

SynRAG combines both:

 User query | Query processing | +-----------+-----------+ | | BM25 search Synapse vectors | | +-----------+-----------+ | Score fusion | Candidate results | Optional reranker | Context compression | Cited LLM context 

The goal isn't to replace BM25 with embeddings.

It's to make the two retrieval signals work together efficiently.

4. What about retrieval quality?

Speed means very little if the engine retrieves the wrong documents.

We evaluated SynRAG using nDCG@10 on public retrieval datasets, comparing systems on the same test machine.

Here are the averages for three English BEIR datasets: SciFact, NFCorpus, and FiQA.

System Average nDCG@10
Elasticsearch BM25 0.424
SynRAG fast 0.441
SynRAG full + reranker 0.455
bge-small-en-v1.5 0.478
EmbeddingGemma 0.503

EmbeddingGemma wins here.

The gap is meaningful. On these English benchmarks, SynRAG is not the strongest retrieval system.

We also evaluated four additional English datasets that were not used for tuning.

SynRAG reached 0.518 average nDCG@10, while an Elasticsearch + EmbeddingGemma hybrid reached 0.561.

That's a limitation we don't want to hide.

On the other hand, results in multilingual retrieval are more encouraging.

On our five-language MLQA evaluation:

  • SynRAG + reranker: 0.664
  • EmbeddingGemma: 0.658
  • Multilingual E5 small: 0.624
  • Elasticsearch BM25: 0.585

And on a 14-language Belebele evaluation, SynRAG reached 0.874 compared with 0.852 for EmbeddingGemma.

The aggregate advantage there came primarily from lower-resource languages such as Kazakh, Uzbek, Kyrgyz, and Tajik. EmbeddingGemma performed better on several larger languages.

Cross-lingual retrieval, where the question and relevant documents are in different languages, remains a weakness.

These are internal evaluations, with methods and benchmark code published for reproduction—not a claim of independently certified superiority.

5. Retrieval latency below one millisecond

We also measured HTTP search performance on the FiQA corpus.

Using persistent HTTP connections, the SynRAG fast retrieval mode achieved:

Metric Result
Median latency 0.76 ms
p95 latency 1.07 ms
p99 latency 1.23 ms
Throughput, 12 clients 6,325 queries/s
Server memory 315 MB

Enabling the reranker increased median latency to 3.17 ms in that evaluation.

This illustrates another deliberate trade-off.

Not every search needs the most expensive retrieval configuration.

An agent doing repeated tool calls may benefit more from fast first-stage retrieval. A research assistant answering complex questions may justify spending additional milliseconds on reranking.

We expose those choices rather than assuming one configuration should serve every workload.

And these sub-millisecond figures apply to the tested FiQA index—not arbitrary corpora or distributed deployments.

6. We also tested 8.8 million passages

Small benchmarks are useful, but they don't tell you enough about memory behavior or larger indexes.

We therefore indexed approximately 8.8 million MS MARCO passages on a single server.

Results:

Mode Indexing time Median query latency Peak RAM
BM25 22 s 7.1 ms 15.2 GB
BM25 + Synapse 142 s 9.9 ms 16.2 GB

That's 2 minutes and 22 seconds for hybrid indexing on the tested machine.

There are important limits to this result: the index used approximately 16 GB of RAM, quality still trailed retrieval models trained specifically for MS MARCO, and we have not validated 100-million-document production deployments.

We're publishing the measured limits rather than extrapolating them into unsupported scale claims.

7. The most overlooked part of RAG: context construction

Retrieving a relevant document doesn't automatically make it useful to an LLM.

A conventional pipeline often retrieves several chunks and concatenates them until the context budget is exhausted.

But the information that answers a question may occupy only a few sentences.

SynRAG includes a context builder that selects relevant sentences under a token budget and attaches source citations.

For example, an agent can receive:

Customers may request a refund within 30 days of purchase [1]. Enterprise subscriptions are governed by the terms of the signed agreement [2]. 

Alongside structured source metadata that identifies the original documents.

We evaluated this approach with Qwen3-8B on 2,100 multilingual questions, keeping retrieved documents consistent between approaches.

Context strategy Answer F1 Prompt tokens
Concatenate retrieved documents 0.394 624
SynRAG compact context 0.395 357

That is approximately 43% fewer prompt tokens at comparable answer quality in this experiment.

The result doesn't mean we invented some mysterious compression algorithm.

A simple sentence-selection baseline already captures much of the benefit.

The practical lesson is that retrieval and prompt construction should be optimized together, rather than treating the prompt as a pile of search results.

8. Try it on your own documents

SynRAG currently supports Linux x86-64. Windows users can run it through WSL2.

Install the engine and models:

curl -fsSL https://ai.synlabs.pro/install.sh | sh 

Then index a folder containing your documents:

M="$HOME/.synrag/models" synrag index ./docs \ -o docs.syn \ --student "$M/synapse.synm" 

Search:

synrag search docs.syn \ "how do refunds work" \ -k 5 \ --student "$M/synapse.synm" 

Or generate a citation-aware context:

synrag context docs.syn \ "how do refunds work" \ --budget 600 \ --student "$M/synapse.synm" 

You can also run SynRAG as an HTTP service, connect using the Python SDK, or expose retrieval tools through MCP.

The MCP server runs in the user's environment and connects AI clients such as Claude and Cursor to local or self-hosted SynRAG indexes.

Your document index doesn't need to be hosted by SynLabs. If you connect the MCP client to a cloud LLM, however, retrieved content may be sent to that LLM provider.

9. What we're releasing

The public repository includes:

  • Linux engine binaries and model downloads
  • Python SDK and connectors
  • MCP server
  • Docker setup
  • Installation scripts
  • API documentation
  • Benchmark methodology and reproduction scripts

Licensing transparency: the Rust engine and model weights are proprietary, not open source. The Community edition is free for commercial use up to one million indexed chunks per organization. The Python SDK, MCP integration, and supporting code are Apache 2.0.

We deliberately chose a model where developers can use the Community edition without sending their data to us or obtaining an activation token from an online service.

Commercial editions add capacity and enterprise capabilities.

10. What we'd like developers to test

There are several questions we'd genuinely like outside feedback on.

First: retrieval quality on real documents. Public benchmarks can only tell us so much. How well does this approach work on your codebases, documentation, tickets, policies, or knowledge bases?

Second: multilingual behavior. We're particularly interested in feedback from teams working with languages that don't get as much attention in mainstream embedding benchmarks.

Third: the CPU-only trade-off. For your workload, would you prefer stronger GPU-based embeddings, or lower infrastructure requirements and faster indexing?

We think both approaches have a place.

Our goal with SynRAG isn't to claim that every RAG pipeline should be rewritten in Rust.

It's to demonstrate that a substantial part of retrieval infrastructure can run efficiently on ordinary CPUs—and to find out where that architecture is genuinely useful.

Source and installation: https://github.com/Synlabs-ai/synrag

Full benchmarks and reproduction details: https://github.com/Synlabs-ai/synrag/blob/main/BENCHMARKS.md

Documentation: https://ai.synlabs.pro/

If you try it, we'd appreciate an issue with your dataset characteristics, latency numbers, and any cases where retrieval fails.

Those failures are often more useful than another impressive benchmark result.