We Built an Internal AI Knowledge Assistant. Here's What Context Engineering Taught Us.
The hard part of production RAG is not connecting an LLM to knowledge. It is engineering the context the model is allowed to trust. At kleinanzeigen.de, we had a familiar knowledge problem. Useful information already existed across repositories, wikis, shared documents, technical guidance, and conv

The hard part of production RAG is not connecting an LLM to knowledge. It is engineering the context the model is allowed to trust.
Useful information already existed across repositories, wikis, shared documents, technical guidance, and conversations. The problem was not always that knowledge was missing.
The problem was finding the right knowledge when someone needed it.
So in early 2025, our Developer Experience team built Kara, an internal AI knowledge assistant available in Slack and backed by Retrieval-Augmented Generation.
Kara grew to roughly 150 monthly active users, and some of its most frequently referenced content was operational knowledge such as the incident management process.
Over the same period, our GetDX developer survey showed a 13-point improvement in the documentation-related score. I would not attribute that to one tool alone, but it was a useful signal that improving access to knowledge was solving a real problem.
The more interesting lessons came after adoption.
Once people start relying on an AI knowledge system, the important question stops being:
Did we give it the right context to answer?
That became the real engineering problem.
The final answer is only the last step. Most of the engineering happens in interpretation, retrieval, ranking, and context assembly.
One of our early assumptions was that AI could improve content before retrieval.
For example, why index a long document directly when an LLM could first summarise or restructure it into something cleaner?
It sounded sensible. It performed worse.
A detailed source could become a neat summary that had lost exactly the information somebody later needed.
We had effectively asked one model to decide what mattered before we even knew the user's question.
So we simplified the pipeline. Preserve the source more faithfully. Chunk it carefully. Retrieve from the original information.
Retrieval improved, ingestion became simpler, and the cost went down.
That gave us one of the first important lessons:
AI preprocessing can improve presentation while quietly destroying retrieval value.
Context engineering is not about putting more AI into every stage. Sometimes it is about preserving the right information.
The user's question is not necessarily the retrieval query Another lesson came from how people actually speak.
If Kara were a human colleague, asking " What can you do?" and " What can Kara do?" would be obviously the same question. You would get the same answer either way.
A retrieval system does not necessarily agree.
For a long time, one worked better because our query rewriting handled explicit references to Kara better than second-person language.
That sounds minor, but it points to something important.
The user's natural-language question is not always the query the retrieval layer should execute.
A production knowledge assistant may need to:
Without that layer, retrieval quality can become surprisingly sensitive to phrasing. And when retrieval changes, the answer often changes with it.
This was probably the most important lesson.
Retrieval can work as designed and the final answer can still be wrong.
Vector search is good at finding semantically related information. But related is not the same as correct.
Semantic relevance does not guarantee authority, freshness, or correctness.
We saw cases where content genuinely related to a team was interpreted as something that team was actually responsible for. The source was relevant. The answer was fluent. The citation looked convincing. The conclusion was still wrong.
That changed how we thought about evaluation.
Instead of asking " Did we retrieve relevant sources?" the better question became " Do the retrieved sources actually support the claim the model is making?"
A RAG system can produce a well-grounded wrong answer.
Citations help expose the evidence. They do not prove that the model interpreted that evidence correctly.
A basic retrieval pipeline tends to flatten knowledge.
A wiki page, a README, an old architectural note, and an official process can all be relevant to the same question. But they are not equally trustworthy.
One may be authoritative. One may be newer. One may simply be related. One may have been superseded without ever being removed.
This is where context engineering starts becoming knowledge modeling. You need signals beyond semantic similarity:
Even then, the rules are not simple. The newest source is not always the most authoritative. An old policy may still be valid. A highly similar source may describe a neighboring system rather than the one the user asked about.
So retrieval gradually becomes less about " Find the closest chunks " and more about " Assemble the most defensible context for this question. "
Once enough internal knowledge is indexed, contradictions start appearing.
The same concept may exist in multiple places, written at different times, with slightly different answers.
Before an AI assistant, humans often worked around this implicitly. Someone knew which page was old. Someone asked a colleague. Someone remembered the decision that replaced the written guidance.
The model does not have that organisational history unless the system provides it.
If two contradictory sources are retrieved, the LLM can blend them into something plausible. That is a difficult failure mode because the output often does not look broken. It just sounds reasonable.
When legitimate-looking sources disagree, the model can produce a plausible synthesis. Someone still has to resolve the underlying knowledge.
Engineering can mitigate this — detecting conflicts, reranking trusted sources, exposing disagreement, refusing to answer when evidence is weak. But there is a limit.
If two legitimate-looking sources contradict each other, the model cannot invent organisational truth. Someone has to fix the knowledge.
That became one of the most useful lessons from Kara:
Documentation quality becomes AI quality.
The quality of your internal knowledge becomes part of the quality of your AI system.
RAG also creates an uncomfortable trade-off.
Retrieve too little and you may miss an important qualifier. Retrieve too much and you increase noise, contradiction, token usage, and the chance that the model focuses on the wrong evidence.
So top-k, chunk size, filtering, overlap, and reranking thresholds are not just search configuration. They shape the temporary world the model sees.
That is why I increasingly think of these choices as context engineering rather than search tuning.
The goal is not to give the model more context. The goal is to give it the smallest useful context that contains enough evidence to answer correctly.
One interesting consequence of Kara becoming useful was that the use cases changed.
People were not only asking casual documentation questions. Operational knowledge, especially around incident management, became some of the most frequently used content.
That changes what "good enough" means. A slightly incomplete answer about a development setup may cost someone a few minutes. A plausible but wrong answer during an incident can send someone in the wrong direction when time matters.
The architecture may be the same. The acceptable confidence level should not be.
For higher-risk questions, an assistant may need to require stronger evidence, prioritize authoritative sources, expose disagreement, make uncertainty visible, or refuse to answer when confidence is weak.
That is where basic RAG architecture starts becoming product design. Not every question should have the same answer policy.
When we started, I thought the interesting technical work would mostly be embeddings, vector search, model selection, prompts, and ingestion.
Those things matter. But the harder questions turned out to be different.
What should enter the knowledge base? How much should we transform it? How do we translate conversational language into retrieval intent? How do we balance similarity with authority? What happens when sources disagree? How much evidence is enough? When should the model say, "I don't know"?
Those are context-engineering questions.
And in practice, they mattered more than switching between two capable models.
The LLM is the final consumer of a much larger context pipeline. If that pipeline gives it lossy, incomplete, conflicting, stale, or weakly ranked information, the model can still produce an excellent-looking answer.
That is precisely what makes the problem difficult.
The one thing I would tell teams building internal AI
The hardest part of building an internal AI knowledge assistant is not connecting an LLM to your knowledge.
It is deciding what the LLM should be allowed to believe.
That means treating context as an engineered product. Not just:
Kara's adoption showed us that making knowledge accessible with AI can genuinely help.
But production usage exposed something more important:
AI does not fix a knowledge system. It amplifies whatever quality that knowledge system already has.
Good knowledge becomes easier to use. Stale knowledge becomes easier to surface. Conflicting knowledge becomes easier to turn into a plausible answer.
That, to me, is the real context-engineering challenge.