Veltronyx
HomeServicesPortfolioIndustriesAbout
Start a project

Let's build the next version of your business.

Tell us what you're shipping. We'll reply within one business day.

Start a project
Veltronyx

Veltronyx engineers software, cloud and AI systems that move ambitious companies forward. From strategy to scale — one accountable partner.

Company

  • About
  • Portfolio
  • Industries
  • Services

Services

  • Custom Software
  • Cloud & DevOps
  • AI & Data
  • Cybersecurity
  • Mobile Apps

Reach us

  • hello@veltronyx.com
  • +91 6355434658
  • +91 7016705055

© 2026 Veltronyx, Inc. All rights reserved.

All articles
AIMay 22, 20264 min read

Building a RAG system that doesn't hallucinate

Retrieval-augmented generation is easy to demo and hard to ship. The retrieval, grounding and evaluation choices that separate a toy from production.

C
Chitt Bhavsar
Building a RAG system that doesn't hallucinate

Retrieval-augmented generation (RAG) is the default pattern for putting an LLM on top of your own data. The demo is trivial: embed some documents, stuff the top matches into the prompt, done. Production is where it gets hard — because a confident wrong answer is worse than no answer.

Retrieval is the whole game

Most "the AI hallucinated" complaints are actually retrieval failures. If the right chunk never makes it into the context, the model fills the gap with plausible fiction. We spend the majority of our effort on retrieval quality, not prompt wording.

RAG pipeline
  • Chunking: split on semantic boundaries, not arbitrary character counts.
  • Hybrid search: combine vector similarity with keyword search to catch exact terms.
  • Re-ranking: a cross-encoder reorders candidates so the best chunk lands first.

Grounding and refusal

We instruct the model to answer only from the supplied context and to say "I don't know" when the context is thin. Then we show citations back to the user so every claim is traceable to a source.

Answer with citations

Finally, none of this is trustworthy without evaluation. We maintain a test set of real questions with known answers and score every change. A RAG system you can't measure is a RAG system you can't improve.

Keep reading

Building an internal developer platform teams actually use
Jun 20, 2026

Building an internal developer platform teams actually use

How we cut a client's cloud bill by 40% in six weeks
Jun 5, 2026

How we cut a client's cloud bill by 40% in six weeks

Going passwordless: a practical guide to passkeys
May 8, 2026

Going passwordless: a practical guide to passkeys

Edit with