@dominic60185
Dominik LubańskiDeveloper▲32
Full Stack & AI Developer, AIvanta
2h ago · AI Engineering · Warsaw

How I developed an enterprise AI knowledge retrieval system in 28 days using Cursor and Claude Code

Over the course of 28 days, I developed an enterprise AI knowledge retrieval system combining Cursor and Claude Code, with document ingestion, hybrid search, permission-aware retrieval, and intelligent routing between local and cloud AI models.

What I found most interesting was that improving the AI's answers had surprisingly little to do with writing better prompts for the language model itself.

The real improvements came from designing how documents were processed, retrieved, ranked, and filtered before reaching the model.

By giving the coding agents a clear understanding of the architecture and breaking down complex requirements into independently testable components, I could focus on solving engineering problems rather than repeatedly correcting AI-generated code.

Some particularly encouraging results from the knowledge retrieval work:

  • Over 100,000 indexed documents.
  • 88% top-5 retrieval recall.
  • Median response time under four seconds.
  • Approximately 45% reduction in monthly LLM API costs.
  • Zero unauthorized content leaks across more than 1,000 automated security tests.

This is what excites me most about AI-assisted development. When you combine the speed of AI coding tools with experienced system design, you can tackle problems that would otherwise require considerably more engineering time.

Anyone here building an AI knowledge assistant but still struggling with accuracy, performance, or document permissions? I'd genuinely enjoy hearing about your experience and exploring what could be improved.

Comments1

  • @ryanallis
    Ryan Allis
    Founder of AI Lounge and SaasRise, helping founders reach $100M+ exits
    2h ago

    Zero leaks across more than 1,000 security tests is the number I'd lead with, because the first thing a company asks before loading 100,000 documents is whether a junior employee could pull up the CEO's salary file. Answers in under four seconds keep people using it every day, but proof that everyone only sees what they're allowed to see is what gets the contract signed.

Log in to join the thread.