top of page
Codersarts Blog.
What’s new and exciting at Codersarts
Search


Query Rewriting and Decomposition in RAG: Turning Messy Questions Into Searches That Work
People do not write questions for search engines. They write them in a hurry, with missing context, loose wording, and several requests packed into one sentence. A RAG system that sends that raw text straight to the index often gets weak results, and the model then answers from whatever came back. Two techniques fix this at the front of the pipeline. Query rewriting turns a messy question into a clear search query. Query decomposition splits a complex question into smaller on
ganesh90
7 hours ago17 min read


Self-RAG vs Corrective RAG vs Agentic RAG: Which Approach Fits Your Project?
Basic RAG follows a fixed path. It retrieves passages, hands them to a language model, and trusts the result. That path works for many questions, and it fails in predictable ways: it retrieves when it does not need to, it accepts weak evidence, and it rarely checks whether the final answer follows from what was found. Three designs try to fix these weaknesses from different directions. Self-RAG builds retrieval decisions and self-critique into the model. Corrective RAG adds a
ganesh90
Nov 517 min read


Context Rot: Why a Bigger Context Window Does Not Replace RAG
Context windows keep growing. Models now accept inputs that once seemed impossible, and it is tempting to conclude that retrieval is obsolete. Why build an index when you can paste everything into the prompt? The answer is that capacity is not the same as capability. A model can accept a very long input and still use it unevenly. As the input grows, answers can become less reliable, details in the middle can be missed, and irrelevant text can pull the model off course. This p
ganesh90
Nov 414 min read


Self-RAG: How a Model Learns to Decide When to Retrieve and Critique Its Own Answers
Standard RAG retrieves for every question, whether or not it needs to. It passes the same number of passages to the model, whether they help or not, and it rarely checks whether the final answer actually follows from them. Self-RAG proposes a different design. A single language model learns to decide when retrieval is needed, to judge whether each retrieved passage is relevant, and to critique whether its own output is supported by the evidence. It does this by producing spec
ganesh90
Nov 415 min read


HyDE for RAG: How Hypothetical Documents Improve Retrieval for Vague Questions
A user asks a short, vague question. Your RAG system turns it into a vector and searches for similar passages. The best passage is in the index, and the search misses it, because a question and its answer rarely look alike. HyDE, short for Hypothetical Document Embeddings, attacks this gap. Instead of embedding the question, a language model first writes a short hypothetical answer. That draft may contain mistakes, and it does not matter. The system embeds the draft and uses
ganesh90
Nov 416 min read


Corrective RAG: How to Grade Retrieved Results and Fix Them Before the Model Answers
Standard RAG has a quiet weakness. It retrieves passages, passes them to the language model, and trusts that they are relevant. When retrieval returns weak or wrong passages, the model often builds a confident answer on top of them. Corrective RAG, often shortened to CRAG, adds a checkpoint. After retrieval, a lightweight evaluator grades the results. Good results are cleaned and used. Poor results are discarded, and the system looks elsewhere. Uncertain results are combined
ganesh90
Nov 415 min read


LightRAG Explained: How Graph-Based RAG Works and When It Fits Your Project
Standard RAG finds text chunks that look similar to a question and hands them to a language model. It works well for questions answered by a single passage. It struggles when the answer depends on connections spread across many documents. LightRAG is a retrieval approach that adds a lightweight knowledge graph to the retrieval step. Instead of searching only chunks, it searches entities, relationships, and themes extracted from your documents, and it can add new content witho
ganesh90
Nov 311 min read


Cache-Augmented Generation: When Preloading Documents Replaces Retrieval
Retrieval-augmented generation became the default way to give language models private knowledge. A retriever finds relevant passages at question time, and the model answers from them. It works, and it adds moving parts: an index, a retriever, ranking, and the chance of fetching the wrong passages. Cache-augmented generation, or CAG, takes a different route for the right cases. Instead of retrieving at question time, you load the whole knowledge set into a long-context model a
ganesh90
Nov 311 min read


Is Your Data Ready for RAG? A Data Readiness Checklist
A RAG system can’t be more accurate than the content behind it. Outdated, duplicated or badly formatted documents lead to confident, well-written wrong answers. This data readiness checklist helps you find those problems before you build. You check sources, quality, formats, metadata, permissions, privacy and freshness, then score your readiness and follow a clear plan to fix the gaps.

Pratibha
Nov 211 min read


Adding AI to Your MVP: When LLMs, RAG or Agents Make Sense (and When They Don't)
Every founder is being asked “Where is the AI?”, but AI added for its own sake makes an MVP slower, costlier and harder to test. This guide explains when each of the three main options is the right choice. Use plain LLM integration for drafting and summarising, RAG when answers must come from your own data, and AI agents only for genuine multi-step work. It also covers how to tell when AI isn’t needed at all.

Pratibha
Nov 28 min read


Our RAG Bot Was 30% Accurate. Here's the Pipeline That Fixed It
A RAG bot that gets only about three answers in ten right is not rare. It is the normal result when a team connects a language model to a pile of documents, sees a few good demos, and ships. The assistant sounds fluent, so the wrong answers are easy to miss until a customer, an auditor, or an employee acts on one. The good news is that low accuracy in retrieval-augmented generation is usually a pipeline problem, not a model problem, and pipeline problems can be measured and f
ganesh90
Oct 1411 min read


GraphRAG for Enterprise AI: Everything You Need to Know
Most enterprise AI assistants answer questions by finding the passages that look most similar to the question and handing them to a language model. That works well for lookups, but it struggles when the answer depends on how things are connected, such as which systems fail when one service goes down, or what the main themes are across thousands of documents. GraphRAG addresses this by adding a knowledge graph to retrieval, so the system can follow relationships and reason acr
ganesh90
Oct 1210 min read


How to Build a Secure AI Banking Operations Workflow
An AI system that reads loan documents, summarizes customer emails, or drafts responses to account queries can save a bank thousands of hours, but only if it can be trusted with sensitive data and cannot be manipulated into doing something it should not. A secure AI banking operations workflow is the set of controls, checkpoints, and monitoring that makes that trust possible, and for banking leaders it is less about the model itself and more about everything built around it.
ganesh90
Oct 1210 min read
bottom of page