Problem
Teams that build retrieval-augmented generation (RAG) systems need to compare retrievers and prompts fairly. Static question sets such as Natural Questions or HotpotQA have leaked into open data and LLM training sets. A model then answers from memory, and the score says little about retrieval or use of the supplied context.
Illustrative example: two rerankers are compared on a public QA set, and the better score comes from a model that memorized the answers.
Solution in brief
Take fresh news, extract a knowledge graph of triplets with an LLM, and drop every triplet already present in Wikidata. Cut the graph into four subgraph types (Simple, Set, Conditional, Multi-Hop) with SPARQL, and let an LLM write one question per subgraph. Filter the questions in five steps and keep 150 per type. Publish texts and questions openly, keep answers private, and regenerate monthly.
Questions this case answers
- How to build an evaluation set for a question-answering system whose test questions must not be answerable from the model's training data
- How to generate multi-hop and set-valued questions with verifiable answers from a stream of unstructured documents
- How to evaluate a RAG system on questions the base model cannot answer from its training data?
- How to generate question-answer pairs for a RAG benchmark automatically from a news stream?
Tools and methods
- Knowledge graph from text — LLM triplet extraction and entity normalization
- SPARQL subgraph queries — select Simple, Set, Conditional and Multi-Hop structures
- Wikidata exclusion — remove facts likely seen in training
- Natasha — named entity recognition on the source news
- Qwen 2.5 7B Instruct, Llama 3 8B — answer without context to find questions that are too easy
- Pollux 7B — LLM judge scoring each pair on eight criteria
- Hugging Face — versioned open and closed datasets
Google or a one-time email code. No password.