Problem
Analysts and managers keep asking the support chats of VK's Data Office engineers and data-platform developers the same three things: where the data lives, how to write a script, and how a function works. VK's ML team found this by auditing the chats. A first RAG bot over all knowledge became hard to change, because a fix in one part could cause a regression in another.
Example from the article: a user asks "Where are the logs of our test environment (sandbox) and write a script to count the number of 404 errors for January."
Solution in brief
Split the assistant into four agents on LangGraph's Swarm pattern: an orchestrator, a data-mart search agent, a documentation agent and a SQL coder. Each agent has its own prompt and tools. The coder reads real table schemas, validates every script in the database in dry-run mode and fixes errors from the traceback. Langfuse traces show where routing breaks.
Questions this case answers
- How to answer routine questions about where data lives, how to query it and how a function works, with an LLM assistant over proprietary metadata and documentation inside a closed perimeter
- How to make generated code for a non-standard query dialect executable when the model does not know the dialect
- How to cut the load of repeated analyst questions on the data-engineering support chat with an LLM assistant?
- How to build an assistant that finds the right warehouse tables, writes SQL for them and answers documentation questions?
Tools and methods
- LangGraph Swarm — multi-agent pattern where agents hand control to each other through handoff tools
- RAG over the data catalog and the documentation — Redis vectors, BERT embeddings, a reranker
- Schema and path exploration tools — give the coder exact column names, types and partitions
- Validate mode (dry run) with traceback self-correction — checks code before the user sees it
- Langfuse (self-hosted) — one trace per user request
Google or a one-time email code. No password.