How we improved search quality using a knowledge graph and what came out of it

29 Apr 2026

Problem

A Sber team runs search for LLM assistants (GigaChat, Sberbank Online) over several sources, each with vector search or vector plus full-text search. Vector search has three weak spots: one vector averages all meanings of a document, similarity is not relevance, and independent chunks know nothing about links between entities. On multi-hop and analytical questions the system returns a confident but wrong "best match" and never says "I don't know". The team tested whether a knowledge graph as an extra context source raises answer quality.

Example from the article: "Who led the company acquired by the organization that funds X?" needs three documents read in sequence, which nearest-neighbor search cannot do.

Solution in brief

The team tried two graphs. A graph agent over the ready-made Yago dump gave no significant gain. A graph that LightRAG built from the company's own documents answered 74% of the questions production search had failed on, adding 12 percentage points on the full 4326-question benchmark.

Questions this case answers
  • How to raise answer accuracy of a retrieval pipeline for questions that vector similarity cannot answer because the answer is spread over several documents
  • How to test whether a graph-based context source adds measurable quality on top of an existing retrieval stack
  • How to improve answer accuracy of RAG search over a large corpus when vector search misses multi-hop and analytical questions?
  • How to decide whether a knowledge graph is worth adding to an existing vector search?

Tools and methods

  • LightRAG — builds a knowledge graph from documents and answers with dual-level (local plus global) retrieval
  • Yago 4.5, Apache Jena Fuseki, Memgraph — first approach: ready-made graph and its stores
  • Graph agent — query entities to SPARQL or Cypher templates, ranking, summary
  • llm-as-a-judge on ruSimpleQA — automatic quality measurement
  • Qwen3-30B-A3B, bge-m3, bge-reranker-v2-m3 — graph-building LLM, embedder and reranker
Continue reading — it's free

Google or a one-time email code. No password.