Problem
Teams that put an LLM behind a question-answering system need to know whether it retrieves the right chunks and answers faithfully. Human review is the best check but costs too much to repeat after every change. Automatic frameworks such as RAGAS replace much of that review, yet they were tuned on OpenAI models. Their helpers also break on Russian text, and the documentation does not cover custom models.
Example from the article: The Sber team runs RAGAS on GigaChat and on Command-R served through vLLM, and finds that the sentence splitter in RAGAS miscounts sentences in a Russian contract clause.
Solution in brief
RAGAS builds a synthetic question set from your documents and scores each RAG answer with LLM prompts. The article explains how each metric works and how to plug in your own models. It also names the one part to patch for Russian: the sentence splitter.
Questions this case answers
- How to score the retrieval and generation stages of a document question-answering system without human labels
- How to build a test set of questions with reference answers from a document base when no real questions exist
- How to run an LLM-based evaluation framework built for one vendor's model on another model when documentation is thin and non-English text breaks its helpers
- How to evaluate a RAG question-answering system automatically when human review is too expensive
Tools and methods
- RAGAS — framework that generates synthetic questions and computes RAG metrics with LLM prompts
- Evol-Instruct-style question evolution — rewrites simple questions into harder ones to widen the test set
- LangChain wrappers — plug GigaChat, GigaChat Embeddings or a vLLM endpoint into RAGAS
- vLLM — serves a Hugging Face model (Command-R) behind an OpenAI-style API
- razdel — Russian sentence splitter that replaces the default one in the metrics
Google or a one-time email code. No password.