Krok shows how it built an internal RAG assistant for corporate data
Krok shared a case study of an internal RAG assistant for working with corporate knowledge in a closed environment. The company rejected external services, moved ACL into a separate layer and spent almost a year refining an off-the-shelf solution together with the vendor. The system includes connectors, personal assistants and quality benchmarks. The main takeaway is simple: in enterprise AI, the hardest part is not the chat but the data, access rights and quality control.
AI-processed from Habr AI; edited by Hamidun News
Krok described how it built an internal RAG assistant for working with corporate knowledge in a closed environment. Instead of building "a chat for the sake of a chat," the company made a tool that cuts the time spent finding the right passages in documents, wikis and internal portals.
Why they chose RAG
The team started from a simple problem: built-in search exists, formally, in almost every large corporate system, but it doesn't make employees' lives easier. Information is scattered across several repositories, each with its own rules, structure and ranking logic. As a result, people remember what a document says but not its exact wording, its file name or where it is stored. Ordinary search relies on matching words rather than context, and that is where it starts to fail.
The team also tested the direct approach of using GPT and uploading documents, but it did not work for large data volumes. Several constraints hit at once: the context window, unstable answers and the risk of sending sensitive documents outside the company's perimeter. So Krok chose a RAG approach: first find relevant fragments in internal sources, and only then pass them to the language model to compose an answer.
"We didn't need AI for the sake of a trend, but a manageable corporate assistant."
The project chose RAG for four practical reasons:
- documents stay inside the company's infrastructure;
- the model receives only the necessary context, not the entire data set;
- indexing and retrieval can be controlled separately;
- the risk of hallucinations is lower because answers are grounded in real sources.
How the system is built
The solution rests on two separate circuits. The first handles assistant creation: through the corporate messenger or a pilot web interface, a user adds files, links to the portal or knowledge base spaces. The assistant management system then checks access rights, launches the necessary parsers, prepares the data and only then sends it to the RAG core for indexing. When the index is ready, the employee gets a notification and can start a conversation.
The second circuit handles dialogue. A user's request goes through the corporate LLM bus, and the RAG engine selects relevant context in advance. Access rights are checked not once at upload, but on every call to the assistant. Because ACLs are complex across different systems, the team dropped shared assistants in some scenarios and moved to personal ones. That is less convenient, but it lowers the risk of an employee seeing data they are not entitled to.
The team also had to build connectors and preprocessing for almost every type of source. The corporate portal, knowledge base, personal files and wiki pages turned out to be too different to hand everything to a single RAG core "out of the box." So cleaning, normalization and data preparation were moved into separate services.
For the main entry point, the team chose an internal messenger built on Express. Telegram initially looked convenient, but for sensitive information an external service was ruled out immediately.
Where the problems appeared
The most painful difficulties were not in the interface but in the data and the processes. Wikis with complex markup required a lot of manual cleanup. Tables and numerical data produced unstable answers. PDFs with scans and graphics broke basic parsing. The model understood visual structures such as org charts worse than text and could confuse links between departments and managers. In addition, users expected full search across all matches from RAG, although the approach ranks the most probable context rather than guaranteeing a complete list of occurrences.
Working with the vendor caused no less pain. Krok tested several platforms on its own document sets and typical questions, then spent almost a year refining the solution together with the supplier. Updates became a problem because they could change answer quality sharply: one version dropped a metric from 85% to 70%. Because the link between RAG and the built-in LLM was opaque, the team asked for a separate interface between them so it could choose the model itself and control further context processing.
For quality control, the team introduced benchmarks, reference questions, regular checks and even a separate LLM judge that compares the actual answer with the expected one.
What this means
Krok's case shows that corporate AI today is less about choosing a model and more about engineering around data, access and testing. RAG alone does not solve the problem without connectors, collection isolation, ACL control and clear quality metrics. But if all of this is assembled into one system, an internal assistant can indeed remove hours of routine searching and make work with corporate knowledge noticeably faster.
- Jul 19, 2026YooMoney builds a RAG platform and "Eugene," an AI assistant for searching its corporate wiki
- May 2, 2026How to Deploy AI for Document Search: Runity's Experience
- Aug 29, 2026Developer builds an AI assistant from scratch: architecture, code and what broke
- Jul 17, 2026Anthropic races to contain the Claude Code source leak
Key Questions Answered
Why they chose RAG?
The team started from a simple problem: built-in search exists, formally, in almost every large corporate system, but it doesn't make employees' lives easier. Information is scattered across several repositories, each with its own rules, structure and ranking logic. As a result, people remember what a document says but not its exact wording, its file name or where it is stored. Ordinary search relies on matching words rather than context, and that is where it starts to fail.
How the system is built?
The solution rests on two separate circuits. The first handles assistant creation: through the corporate messenger or a pilot web interface, a user adds files, links to the portal or knowledge base spaces. The assistant management system then checks access rights, launches the necessary parsers, prepares the data and only then sends it to the RAG core for indexing. When the index is ready, the employee gets a notification and can start a conversation. The second circuit handles dialogue.
Where the problems appeared?
The most painful difficulties were not in the interface but in the data and the processes. Wikis with complex markup required a lot of manual cleanup. Tables and numerical data produced unstable answers. PDFs with scans and graphics broke basic parsing. The model understood visual structures such as org charts worse than text and could confuse links between departments and managers.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
