Plain RAG Was Not Enough, So We Built an AI Consultant for Architecture

Robert Ryzbaev16 Sep 2026

Problem

Alfa-Bank keeps architecture knowledge in Confluence, a systems registry, ADRs (architecture decision records) and the heads of senior architects. Finding answers is slow, newcomers struggle to see the landscape, and architects repeat the same answers. A first version with a vector database over both sources handled single-fact questions. It failed on questions about links, such as which integrations a component change affects, because the answer is a chain of relations, not a text fragment.

Example from the article: "Show the modules of the system whose components are hosted in the cloud" needs a walk over the hierarchy and the hosting environment, which similarity search cannot do.

Solution in brief

Split the knowledge by structure. Documents stay in a vector index; the registry (about 2,000 systems, 300,000 hierarchy and integration links) goes into a graph database. A classifier routes each question to the registry, to documentation, to both, or to the LLM alone. The flow runs in Langflow and later grew from a fixed workflow into an orchestrator with specialized agents.

Questions this case answers
  • How to answer questions that depend on relations between many linked entities when similarity search over text chunks loses the structure
  • How to choose per question between several knowledge sources of different structure without querying all of them every time
  • How to answer employees' questions about a large IT landscape when knowledge sits in a wiki and in a systems registry
  • How to answer questions about dependencies and integrations that a vector search over text chunks cannot answer

Tools and methods

  • GraphRAG — answers relation-heavy questions by multi-step graph traversal
  • Vector search — finds standards, ADRs and processes in Confluence
  • Query classifier — an LLM returns JSON with a datasource field that picks one of four routes
  • Langflow — low-code engine that holds the flow
  • MCP tools and agents — registry, documentation, graph, integration and solution-check agents under an orchestrator
Continue reading — it's free

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