Results
Each mode answered the same 64 test queries against the same 128 passages per language.
For Ukrainian, both modes returned the labeled passage in the top ten for all 64 queries and first for 63. In graph mode, the labeled passage received a positive keyword score for 57 queries. Vector retrieval returned every labeled passage in the top ten for English and Urdu. Graph retrieval returned 63 of 64 in English and 61 of 64 in Urdu.
- nDCG@10 gives more credit to results near the top. With one labeled answer per query, the score is
1 / log2(rank + 1). - Recall@10 is the share of queries that return the labeled passage in the top ten.
- MRR@10 averages the reciprocal rank of the labeled passage across queries.
- Hit@1 is the share of queries that put the labeled passage first.
Dataset and method
The workload selects 64 queries per language by sorting official test query IDs by a salted SHA-256 hash. Each index includes the 64 judged answer passages and 64 distractors. It selects one unique distractor per query from the judged answers to other test queries in the same language, using inverse-document-frequency-weighted keyword overlap and adjusting for passage length. The workload normalizes Unicode composition and whitespace before uploading each passage as a text file. It verifies that each file produces exactly one chunk, with a 4,096-token limit and zero overlap. Searches request ten results with a minimum score of zero and query rewriting disabled. The workload scores the returned file IDs against the published relevance judgments. Files · Vector stores Both modes usedmeetkai:embedding with 4,096 dimensions. The graph stores used openai:gpt-4.1-mini for extraction. The benchmark set the reranker to auto, which selects the ranker in the serving environment. Every search returned a reranker score. Graph retrieval
These scores describe retrieval on the fixed WebFAQRetrieval subset above. The full corpus includes many more candidate passages. WebFAQRetrieval labels one relevant passage per query, so a different passage can answer the question and still receive zero credit. Compare retrieval modes within each language.
Reproduce the benchmark
- Set
MKA1_API_KEYandMKA1_BASE_URLin your environment. The base URL must end in/api/v1/llm. Use an account with access to the embedding and extraction models listed above. - Copy the Python workload into
retrieval-benchmark.py. - Run the commands below to download the pinned WebFAQRetrieval data and execute the workload with uv. The English corpus download is about 1 GB. The workload creates temporary stores, scores them, and requests deletion of its stores and uploads on exit. Ingestion and search use your account’s model quota.
Python benchmark workload
Python benchmark workload
retrieval-benchmark.py
searches_reranked before comparing scores.