GitHub Get synrag

Benchmarks

Every system on the same machine, the same data and the same metric code. synrag runs on the CPU; embedding models run on a GPU (their best case) and are also timed on the CPU. All quality numbers are nDCG@10 on public test splits; synrag's settings were chosen on train/dev only. These are our own measurements — the scripts are listed at the end so they can be reproduced.

Setup

From process start to searchable

FiQA: 57,638 documents, 44 MB of text. Time includes reading the corpus, building every index channel, loading and running the model.

SystemHardwareReady inMemorynDCG@10
synrag BM25CPU0.45 s325 MB0.261
synrag fast (BM25 + Synapse)CPU1.6 s443 MB0.279
synrag fullCPU4.8 s475 MB0.277
Elasticsearch BM25CPU12.7 s4.9 GB0.254
Tantivy + Model2Vec-RS (multilingual)CPU2.8 s1.85 GB0.260
Tantivy + Model2Vec-RS (English)CPU0.44 s370 MB0.267
all-MiniLM-L6-v2GPU / CPU60 s / 16.5 min2.1 GB + 0.7 GB VRAM0.369
bge-small-en-v1.5GPU / CPU107 s / 31 min2.1 GB + 0.8 GB VRAM0.390
multilingual-e5-smallGPU / CPU74 s / 19 min2.5 GB + 1.1 GB VRAM0.334
EmbeddingGemmaGPU / CPU282 s / 1.7 h2.8 GB + 5.6 GB VRAM0.308

FiQA (financial Q&A with paraphrased questions) is the hardest set for keyword search: here embedding models are clearly better than synrag. Averages over many sets are below.

Embedding speed

ModelParametersMultiplications / tokenCPUCPU, ONNX int8GPU, fp16
Synapse (synrag)21.3M~5K51,600 docs/s—not needed
Model2Vec-RS multilingual / English128M / 7.6M~056,400 / 750,000——
all-MiniLM-L6-v222.7M~12M581252,252
bge-small-en-v1.533.4M~21M31661,765
multilingual-e5-small117.7M~21M50711,818
EmbeddingGemma271M (text)~100M9—207

Synapse is a convolutional encoder (±8 token window + a global gate) distilled from EmbeddingGemma: 2,000–20,000× fewer multiplications per token than transformers, ~410–780× faster than their ONNX int8 versions on the same CPU and 23–29× faster than their fp16 versions on a GPU. Model2Vec (static vectors) is as fast or faster; Synapse's advantage is quality when fused with BM25, not raw speed.

Latency over HTTP

FiQA test, 648 queries, the same Python client; latency = one client, query after query; throughput = 12 clients; quality computed from the servers' own answers.

ServernDCG@10p50 / p95 / p9912 clientsServer memory
synrag fast, keep-alive0.2790.76 / 1.07 / 1.23 ms6,325 q/s315 MB
synrag fast + reranker0.2963.17 / 3.84 / 4.10 ms475 q/s296 MB
synrag with API key + audit log0.2790.83 / 1.16 / 1.32 ms6,186 q/s—
Elasticsearch 8.15, keep-alive0.2541.96 / 3.72 / 4.34 ms3,197 q/s4.7 GB

English quality (BEIR)

SystemSciFactNFCorpusFiQAAverageGPU
Elasticsearch BM250.6910.3270.2540.424no
synrag fast0.7060.3380.2790.441no
synrag full + reranker0.7190.3500.2980.455no
Tantivy + Model2Vec-RS (English)0.7060.3350.2670.436no
all-MiniLM-L6-v20.6480.3180.3690.445yes
multilingual-e5-small0.6510.3060.3340.430yes
bge-small-en-v1.50.7030.3430.3900.478yes
EmbeddingGemma0.8540.3450.3080.503yes
Elasticsearch + model (4 models)0.716–0.7530.344–0.3610.306–0.3310.455–0.474yes

On English synrag is level with small embedding models and the lower end of Elasticsearch + model hybrids, and below bge-small (−0.023) and EmbeddingGemma (−0.048).

Other languages

MLQA (question and Wikipedia paragraphs in the same language):

SystemenzhdearhiAverage
Elasticsearch BM250.7110.6220.5730.4820.5380.585
synrag full + reranker0.7670.7070.6270.5930.6250.664
multilingual-e5-small (GPU)0.6520.6430.6320.5680.6250.624
EmbeddingGemma (GPU)0.6600.6820.6770.5940.6760.658
Elasticsearch + EmbeddingGemma0.7560.7070.6410.5570.6250.657
Tantivy + Model2Vec-RS0.7350.7060.6110.5800.5860.644
bge-small-en-v1.5 (GPU)0.5700.1380.3520.0250.0360.224

MQA, 12 languages (Turkish, Kazakh, Uzbek, Azerbaijani, Kyrgyz, Russian, English, German, Arabic, Persian, Urdu, Hindi): synrag fast + reranker 0.478, EmbeddingGemma 0.486, Elasticsearch + EmbeddingGemma 0.445, Tantivy + Model2Vec 0.427, Elasticsearch 0.416, multilingual-e5-small 0.409. synrag is first on Kazakh, Uzbek, Azerbaijani, Urdu and German; EmbeddingGemma on Hindi, Persian, Russian, English, Arabic and Turkish. (Synapse saw other pairs from the MQA source during training.)

Belebele, 14 languages (not used in training or tuning)

SystemenruukkkuzkytgtrdearhizhAvg (14)
synrag fast + reranker0.9600.9310.9080.8340.8470.8380.8560.8800.8830.8800.7920.9310.874
EmbeddingGemma (GPU)0.9460.9340.9250.7340.7210.7320.6190.9140.9330.9010.9030.9390.852
Elasticsearch + EmbeddingGemma0.9540.9490.8000.7340.7910.7460.8010.9070.9240.9080.8480.9340.853
Elasticsearch BM250.9170.9140.6980.6530.7190.6660.7610.8520.8830.8580.7740.8940.791

The lead comes from low-resource languages (Kazakh, Uzbek, Kyrgyz, Tajik: +0.10…+0.24 over EmbeddingGemma). EmbeddingGemma is better on 8 of 14 languages (Hindi, German, Persian, Turkish, Arabic, Ukrainian, Chinese, Russian); without the four Central Asian languages it averages 0.912 vs 0.886 for synrag.

Independent English sets (not used in tuning)

SystemSciDocsArguAnaTREC-COVIDQuoraAverage
synrag fast + reranker0.1650.3470.7130.8460.518
Elasticsearch BM250.1650.3520.6880.8080.503
multilingual-e5-small (GPU)0.1440.3000.7290.8820.514
EmbeddingGemma (GPU)0.1790.4610.5860.8720.524
bge-small-en-v1.5 (GPU)0.1960.3990.7450.8860.557
Elasticsearch + EmbeddingGemma0.1790.4260.7770.8610.561

Here synrag is below bge-small and every Elasticsearch + model hybrid (0.537–0.561). On ArguAna (argument → counter-argument) Synapse even hurts BM25 (0.367 → 0.344).

Scale: 8.8M MS MARCO passages on one server

ModeReady innDCG@10Recall@100p50 / p9912 threadsPeak RAM
synrag BM2522 s0.2440.6747.1 / 28 ms450 q/s15.2 GB
synrag BM25 + Synapse (IVF 32)142 s0.2770.7309.9 / 31 ms372 q/s16.2 GB

Published BM25 on this set: 0.228. Models trained on MS MARCO itself are stronger here (TAS-B 0.408, ANCE 0.388); synrag never saw it.

LLM prompt tokens

Qwen3-8B, 7 MLQA languages, 2,100 questions, the same retrieved documents for every method; F1 against the reference answer, 95% paired bootstrap.

ContextF1Prompt tokens
Concatenate retrieved documents, budget 5000.394624
Sentence selection by embeddings (LlamaIndex / LangChain style), 5000.365615
synrag context, budget 2500.395357
synrag context, budget 5000.419620

Same answer quality with 43% fewer prompt tokens (difference +0.000, CI [−0.015; +0.017]), or better answers at the same budget. Plain BM25 sentence selection does almost as well — the gain comes from extracting sentences, not from a secret algorithm.

Cost to index one million documents

MethodMachineTime$ / 1M docs
synrag BM25 + Synapse (whole index)AWS c7a.2xlarge, $0.41/h28 s$0.003
multilingual-e5-small fp16 (vectors only)AWS g6.xlarge (L4), $0.80/h9.2 min$0.12
EmbeddingGemma (vectors only)AWS g6.xlarge (L4)1.3 h$1.08
OpenAI text-embedding-3-small / Titan V2 API——$3.8

Documents of FiQA size (~760 bytes). Machine speeds assumed equal to our test machine; prices November 2026, on-demand.

Where synrag loses

Full technical report with every table, method and changelog (in Russian): PDF.