Most RAG failures are retrieval failures
Anyone can build a RAG demo in an afternoon. The hard part is getting the right answer on the ten-thousandth question, across messy PDFs, wikis, tickets and databases. When a RAG system "makes things up", the model is rarely to blame. Usually retrieval handed it the wrong context, or none. That's where we spend most of our engineering time, before the model is ever called. The how-to version is in RAG in production.
What we build
- Internal knowledge assistants: staff ask questions in plain language and get cited answers from policies, SOPs, contracts, product docs and past tickets.
- Customer-facing answer engines: support and self-service that answers from your approved content only and hands off to a person when it should.
- Document intelligence: search, compare and pull answers out of large sets of documents, such as contracts, claims, research and regulatory filings.
- Agentic RAG: agents that decide what to search, run several searches, check the results and act on them. See AI agent development.
- Search over structured data: questions answered from SQL databases and BI tables alongside documents, in one place.
How we build RAG that holds up in production
- Start with the content, not the vector database. We list your sources, fix duplicates and stale versions, and decide who owns each source. Clean input beats clever retrieval.
- Chunk for meaning, and keep the breadcrumbs. Documents are split along their real structure: sections, tables, clauses. Each piece keeps its title, source, date and access rights.
- Embeddings and indexes chosen on your data. We benchmark embedding models and index settings on your own questions, not public leaderboards.
- Hybrid search as the baseline. Keyword plus semantic search, with re-ranking, so it catches both exact terms (part numbers, clause IDs) and meaning.
- Fix the question before searching. The system rewrites the question, splits it into parts and filters on metadata, so vague questions still find the right documents.
- Answers that show their work. Every claim links to its source passage. When nothing relevant is found, the system says "I don't know".
- Permissions enforced at retrieval. Users only see answers built from documents they're already allowed to open. Tenants stay separate.
- Retrieval and answers evaluated separately. Each has its own test set and metrics: recall, precision, faithfulness and answer quality. Regressions are caught in CI before a release.
- Fresh content, watched after launch. Ingestion pipelines keep the index current, and live monitoring flags failed questions and content gaps.
Related work
A clinical copilot for a hospital network: a privacy-first assistant that summarizes records, drafts notes and surfaces evidence-based suggestions, each one cited to its source. Read the clinical copilot case study.
Our RAG stack
- Vector and search: pgvector, Pinecone, Weaviate, Qdrant and Elasticsearch.
- Frameworks: LlamaIndex, LangChain and MCP servers.
- Models: Claude, GPT, Gemini, Llama, Qwen and Mistral, plus open-weight models when data can't leave your environment.
- Evals and observability: LangSmith, Langfuse, Arize and Braintrust.
- Deployment: AWS Bedrock, Azure AI Foundry, Google Vertex AI, Kubernetes, or your own VPC.
Build, buy or extend?
Off-the-shelf "chat with your docs" tools work well for small, low-risk content sets. You need a custom RAG build when you have large or messy sources, when strict permissions or regulation apply, when you need to answer from databases as well as documents, or when wrong answers are expensive. In discovery we tell you which side of that line you're on. If a tool you already pay for is enough, we'll say so.
How an engagement works
- Discover, 2-3 weeks. List the sources, collect 50-200 real user questions, set accuracy targets and check access rules.
- Prototype, 2-3 weeks. A retrieval benchmark on your data, the first evals, and a working assistant on a small slice of the content.
- Build and ship, 4-6 weeks. Full ingestion, permissions, user interface or API, monitoring and launch.
- Run and improve. Freshness pipelines, failed-question review and tuning.
A typical first production release ships in 8-12 weeks. AI discovery sprints typically start at $15K, and production AI MVPs range from $40K-$120K, depending on the number of sources, the access model and compliance needs.
Frequently asked questions
What is RAG (retrieval-augmented generation)?
RAG is an architecture in which an AI model first searches your own content for relevant passages, then writes an answer based only on them, with citations. Your data stays out of the model's weights and updates as soon as your content does.
RAG or fine-tuning: which do we need?
RAG for knowledge: facts, policies and documents that change. Fine-tuning for behavior: tone, format and specialist tasks. Many production systems use RAG first and add a light fine-tune later only if needed.
How do you stop a RAG system from hallucinating?
Better retrieval (hybrid search, re-ranking, query rewriting), strict instructions to answer only from the sources, a citation on every claim, a confidence threshold that triggers "I don't know", and evals that measure faithfulness before every release.
Can it respect our document permissions?
Yes. Access rights are stored with every piece of content and enforced at search time. A user only gets answers built from documents they can already open.
Can our data stay inside our own cloud?
Yes. We use VPC-isolated deployments in your cloud account, with private model endpoints or open-weight models when needed.
How long does a RAG project take, and what does it cost?
A first production release typically ships in 8-12 weeks. AI discovery sprints typically start at $15K, and production AI MVPs range from $40K-$120K. Larger platforms are scoped after discovery.
Can you fix a RAG system we already built?
Yes. A retrieval audit is often the fastest win: we benchmark your current setup on real questions and fix the biggest failure points first.