<?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: Ashwani Garg</title>
    <description>The latest articles on DEV Community by Ashwani Garg (@ashwani_garg_8070e0d05964).</description>
    <link>https://dev.to/ashwani_garg_8070e0d05964</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2165551%2F0c7f89d9-ecb4-4ebd-902a-21e9b228cbd7.jpg</url>
      <title>DEV Community: Ashwani Garg</title>
      <link>https://dev.to/ashwani_garg_8070e0d05964</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ashwani_garg_8070e0d05964"/>
    <language>en</language>
    <item>
      <title>Built a Hybrid RAG API with FastAPI &amp; Ollama – Sparse + Dense retrieval in action.</title>
      <dc:creator>Ashwani Garg</dc:creator>
      <pubDate>Thu, 12 Feb 2026 09:59:39 +0000</pubDate>
      <link>https://dev.to/ashwani_garg_8070e0d05964/built-a-hybrid-rag-api-with-fastapi-ollama-sparse-dense-retrieval-in-action-21d2</link>
      <guid>https://dev.to/ashwani_garg_8070e0d05964/built-a-hybrid-rag-api-with-fastapi-ollama-sparse-dense-retrieval-in-action-21d2</guid>
      <description>&lt;p&gt;Stop building basic RAG apps that fail in production. Learn how to combine BM25 Keyword Search with FAISS Vector Search and layer on a Cross-Encoder Reranker for the most accurate AI answers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/tzNtiEj9Kg8" rel="noopener noreferrer"&gt;YouTube Video Tutorial&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Summary:&lt;/p&gt;

&lt;p&gt;In this tutorial, we dive deep into building a professional Retrieval-Augmented Generation (RAG) system using FastAPI and Ollama. We don't just stop at vector search; we implement Hybrid Search and Reranking to ensure your LLM gets the absolute best context every single time.&lt;/p&gt;

&lt;p&gt;Key Features Covered:&lt;/p&gt;

&lt;p&gt;🚀 FastAPI Integration: Build a real-time API for document ingestion.&lt;/p&gt;

&lt;p&gt;🔍 Hybrid Search: Combining BM25 (Sparse) and FAISS (Dense) retrieval.&lt;/p&gt;

&lt;p&gt;🎯 Reranking: Using Cross-Encoders to re-score candidates for precision.&lt;/p&gt;

&lt;p&gt;🧠 Local LLM: Running Phi-3 via Ollama for private, local generation.&lt;/p&gt;

</description>
      <category>ai</category>
    </item>
  </channel>
</rss>
