Problem
Alfa-Bank's AlfaGen platform team built an internal "Smart Search": an LLM chat grounded in Confluence, Jira and a product knowledge base, so that contact-center operators stop searching and rewriting articles by hand. A naive RAG fails in predictable ways. It picks documents for the wrong meaning of a term, answers from an index that is a week behind, and breaks when the LLM layer is not set up. Once teams see it working, many ask to connect their own knowledge bases, which can mix everything into one slow index.
Example from the article: a manager asks about opening a loan account, the model answers about a business account instead of a personal one, and the answer uses rules that were rewritten a week earlier.
Solution in brief
Each indexed chunk gets LLM-generated "child" questions, the user query is expanded with HyDE, and a reranker re-scores candidates in a sharded Qdrant index. A separate service checks access rights, data is split by collections, domains and shards, and a daily diff-based updater keeps the index current.
Questions this case answers
- How to retrieve the right document from an ambiguous user question when several documents match different meanings of the same term
- How to keep a retrieval index fresh when source documents are edited continuously and partial edits must not be indexed
- How to restrict retrieval results to what each user is permitted to see when sources use different permission models
- How to make an internal RAG assistant answer correctly when the same question can refer to different products or account types?
Tools and methods
- Qdrant — vector database with filters, sharded by Confluence domain
- Synthetic child chunks — LLM questions stored next to each chunk
- HyDE — LLM-generated extra questions for the query
- Reranking — second model call that rescores retrieved chunks
- Access-rights service — separate cached, replicated permission checks
- Daily diff updater — create/update/delete sync
Google or a one-time email code. No password.