<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ronit Rajput</title>
    <description>The latest articles on DEV Community by Ronit Rajput (@ronit_rajput).</description>
    <link>https://dev.to/ronit_rajput</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4215439%2Fefe43fd2-bec9-41c4-9f54-d4fabbf9eb94.jpg</url>
      <title>DEV Community: Ronit Rajput</title>
      <link>https://dev.to/ronit_rajput</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ronit_rajput"/>
    <language>en</language>
    <item>
      <title>Building ReportIQ: Evaluating RAG Retrieval Beyond Just Getting an Answer</title>
      <dc:creator>Ronit Rajput</dc:creator>
      <pubDate>Thu, 29 Oct 2026 13:47:45 +0000</pubDate>
      <link>https://dev.to/ronit_rajput/building-reportiq-evaluating-rag-retrieval-beyond-just-getting-an-answer-1pkh</link>
      <guid>https://dev.to/ronit_rajput/building-reportiq-evaluating-rag-retrieval-beyond-just-getting-an-answer-1pkh</guid>
      <description>&lt;h1&gt;
  
  
  Building ReportIQ: Evaluating RAG Retrieval Beyond Just Getting an Answer
&lt;/h1&gt;

&lt;p&gt;When building a Retrieval-Augmented Generation (RAG) application, getting an answer from an LLM is only part of the problem.&lt;/p&gt;

&lt;p&gt;A more important question is: &lt;strong&gt;Did the system retrieve the right information to answer the question?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I wanted to explore this problem hands-on, so I built &lt;strong&gt;ReportIQ&lt;/strong&gt;, a document Q&amp;amp;A application focused on retrieval evaluation and LLM observability.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fogjvbqnbyd5j3hzppqb2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fogjvbqnbyd5j3hzppqb2.png" alt="ReportIQ application overview" width="800" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is ReportIQ?
&lt;/h2&gt;

&lt;p&gt;ReportIQ lets users interact with PDF documents through a RAG pipeline. Alongside document-based question answering, I worked on evaluating retrieval quality and inspecting the workflow behind the answers.&lt;/p&gt;

&lt;p&gt;The goal is to look beyond the generated answer and better understand the retrieval process that supports it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F209cpt143s5ffqqybras.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F209cpt143s5ffqqybras.png" alt="ReportIQ document question-answering interface" width="799" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python:&lt;/strong&gt; Core application and data processing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Streamlit:&lt;/strong&gt; User interface&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BGE-small-en-v1.5:&lt;/strong&gt; Text embeddings&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FAISS:&lt;/strong&gt; Vector similarity search&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LangSmith:&lt;/strong&gt; LLM tracing and observability&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Building the Document Pipeline
&lt;/h2&gt;

&lt;p&gt;I processed &lt;strong&gt;8 PDF documents into 721 chunks&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Chunking was an important part of the process because retrieval quality depends on how source information is divided and represented.&lt;/p&gt;

&lt;p&gt;I used BGE embeddings to represent the chunks as vectors and FAISS to retrieve relevant passages for a user's query.&lt;/p&gt;

&lt;p&gt;This gave me a foundation for experimenting with retrieval quality rather than relying only on whether a generated response sounded correct.&lt;/p&gt;

&lt;h2&gt;
  
  
  Evaluating Retrieval Quality
&lt;/h2&gt;

&lt;p&gt;Rather than relying only on whether an answer looked reasonable, I evaluated retrieval against a set of &lt;strong&gt;50 questions&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;My latest recorded baseline achieved:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Recall@1&lt;/td&gt;
&lt;td&gt;66.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recall@3&lt;/td&gt;
&lt;td&gt;91.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recall@5&lt;/td&gt;
&lt;td&gt;91.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MRR@5&lt;/td&gt;
&lt;td&gt;79.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F62x3wdypdedppnxxmub1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F62x3wdypdedppnxxmub1.png" alt="ReportIQ retrieval evaluation results" width="800" height="427"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These results come from a small evaluation set, so they should be treated as an initial baseline rather than proof of general performance.&lt;/p&gt;

&lt;p&gt;The experiment gave me a more concrete way to investigate retrieval behavior and identify areas for improvement.&lt;/p&gt;

&lt;h2&gt;
  
  
  LLM Observability
&lt;/h2&gt;

&lt;p&gt;Evaluating retrieval metrics is one part of understanding a RAG application. Inspecting the LLM workflow can provide additional context about what happens during execution.&lt;/p&gt;

&lt;p&gt;I also worked with LangSmith to trace and inspect the LLM workflow.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Far2yocbysdgack0mcqj8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Far2yocbysdgack0mcqj8.png" alt="ReportIQ technical workflow and observability" width="800" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;p&gt;Building ReportIQ helped me explore several practical aspects of RAG systems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Document processing and chunk quality&lt;/li&gt;
&lt;li&gt;Embedding models and vector search&lt;/li&gt;
&lt;li&gt;Retrieval evaluation using recall and reciprocal rank&lt;/li&gt;
&lt;li&gt;LLM workflow tracing and observability&lt;/li&gt;
&lt;li&gt;The importance of inspecting the pipeline rather than judging only the final answer&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm continuing to improve ReportIQ and make the evaluation workflow more useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try ReportIQ
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live demo:&lt;/strong&gt; &lt;a href="https://reportiq.streamlit.app/" rel="noopener noreferrer"&gt;https://reportiq.streamlit.app/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Source code:&lt;/strong&gt; &lt;a href="https://github.com/Ronit-019/ReportIQ" rel="noopener noreferrer"&gt;https://github.com/Ronit-019/ReportIQ&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd appreciate feedback from developers working on RAG applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Question for the community:&lt;/strong&gt; What metrics or evaluation methods do you use to determine whether your RAG pipeline is retrieving the right evidence?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built as a hands-on project to explore RAG retrieval, evaluation, and observability.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>rag</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
