Problem
A bank piloted a RAG assistant that reads the last customer messages, finds fragments in the internal knowledge base and writes a hint for a support operator. To scale it, the team needed a golden dataset and planned to label 5,000 dialogues. The first specification left annotators too much freedom: they cited the right article but the wrong fragment, merged or cut fragments, made typos and invented separators. Chunks of different size and format made retriever metrics impossible to compute. The team also did not know what share of the real flow RAG could cover.
Example from the article: one annotator spent 243 seconds and listed many relevant articles, another spent 19 seconds and gave one link, with no limits set for either.
Solution in brief
Remove interpretation from the specification: a glossary, a four-property definition of a fragment, and annotators copying text only from the team's own export. Label the whole incoming flow with a decision tree (clear request, number of intents, operator action) and sample the dataset by cluster from an existing hierarchical classifier.
Questions this case answers
- How to build a golden evaluation set for a retrieval system from human labels when annotators interpret free-form instructions differently and the document collection keeps changing
- How to sample a labeling set that is diverse across request classes and still preserves the structure of a heavily imbalanced incoming flow
- How to write a labeling specification so that annotators produce consistent reference chunks for a RAG retriever?
- How to sample about 5,000 dialogues for a golden set that stays diverse despite strong class imbalance?
Tools and methods
- Golden set — reference labels for retrieval and for flow-level analysis of the agent
- Human labeling in Label Studio — open-source platform used for the annotation project
- Stratified sampling by cluster — diverse sample that keeps the structure of the flow
- Decision-tree labeling methodology — a step-by-step question flow with many examples
Google or a one-time email code. No password.