<?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: Erando Putra</title>
    <description>The latest articles on DEV Community by Erando Putra (@ando22).</description>
    <link>https://dev.to/ando22</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%2F268928%2F68642e6c-a70a-4b91-ae69-6564fede3aa2.jpeg</url>
      <title>DEV Community: Erando Putra</title>
      <link>https://dev.to/ando22</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ando22"/>
    <language>en</language>
    <item>
      <title>I built DocsRAG — because reading docs during coding is still painful</title>
      <dc:creator>Erando Putra</dc:creator>
      <pubDate>Wed, 18 Mar 2026 13:35:00 +0000</pubDate>
      <link>https://dev.to/ando22/i-built-docsrag-because-reading-docs-during-coding-is-still-painful-4nn3</link>
      <guid>https://dev.to/ando22/i-built-docsrag-because-reading-docs-during-coding-is-still-painful-4nn3</guid>
      <description>&lt;p&gt;When working on integrations (Stripe, APIs, SDKs, etc.), I kept running into the same problem.&lt;/p&gt;

&lt;p&gt;You search something simple like:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;“how to generate an API key”&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And then:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;you open 3–5 documentation pages&lt;/li&gt;
&lt;li&gt;each page explains a different piece&lt;/li&gt;
&lt;li&gt;code examples are there… but not clearly tied to what you need&lt;/li&gt;
&lt;li&gt;you end up stitching everything together manually&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Even with AI tools, it’s not much better:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;answers are often generic&lt;/li&gt;
&lt;li&gt;sometimes not grounded in the actual docs&lt;/li&gt;
&lt;li&gt;or missing key implementation details&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After going through this &lt;em&gt;over and over again&lt;/em&gt;, I decided to build something for it.&lt;/p&gt;




&lt;h1&gt;
  
  
  🚀 Introducing DocsRAG
&lt;/h1&gt;

&lt;p&gt;DocsRAG is an &lt;strong&gt;open-source, local-first platform&lt;/strong&gt; that turns public documentation into a &lt;strong&gt;grounded reasoning layer&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of treating docs as just text to search, it tries to &lt;strong&gt;understand their structure&lt;/strong&gt; and answer questions like an engineer would:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;explanation first&lt;/li&gt;
&lt;li&gt;then relevant code examples&lt;/li&gt;
&lt;li&gt;backed by actual documentation&lt;/li&gt;
&lt;li&gt;with citations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 Repo: &lt;a href="https://github.com/Ando22/rag-docs" rel="noopener noreferrer"&gt;https://github.com/Ando22/rag-docs&lt;/a&gt;&lt;/p&gt;




&lt;h1&gt;
  
  
  💡 The idea
&lt;/h1&gt;

&lt;p&gt;Most documentation is written for &lt;strong&gt;browsing&lt;/strong&gt;, not for &lt;strong&gt;implementation-time reasoning&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;But when you’re coding, you don’t want:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;long explanations&lt;/li&gt;
&lt;li&gt;full pages&lt;/li&gt;
&lt;li&gt;or unrelated examples&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You want:&lt;/p&gt;

&lt;p&gt;👉 &lt;em&gt;“What exactly do I need to do?”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;DocsRAG tries to bridge that gap.&lt;/p&gt;




&lt;h1&gt;
  
  
  😵 The problem
&lt;/h1&gt;

&lt;p&gt;From my experience (and probably yours too):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Docs are large and fragmented&lt;/li&gt;
&lt;li&gt;Useful answers are spread across multiple pages&lt;/li&gt;
&lt;li&gt;Code examples and explanations are not tightly connected&lt;/li&gt;
&lt;li&gt;AI tools hallucinate when context is weak&lt;/li&gt;
&lt;li&gt;Docs chatbots return “related” answers, not precise ones&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And most RAG systems treat everything the same:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;explanation&lt;/li&gt;
&lt;li&gt;reference&lt;/li&gt;
&lt;li&gt;examples&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Which leads to… mediocre answers.&lt;/p&gt;




&lt;h1&gt;
  
  
  🛠️ The approach
&lt;/h1&gt;

&lt;p&gt;DocsRAG is built as a &lt;strong&gt;multi-stage pipeline&lt;/strong&gt;, not just “retrieve and prompt”.&lt;/p&gt;

&lt;h3&gt;
  
  
  Ingestion
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Crawl public documentation&lt;/li&gt;
&lt;li&gt;Extract structured sections&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Separate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;explanation chunks&lt;/li&gt;
&lt;li&gt;code examples&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Keep them linked by section/page&lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  Ask flow
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Analyze intent&lt;/li&gt;
&lt;li&gt;Retrieve explanation-first&lt;/li&gt;
&lt;li&gt;Rerank results&lt;/li&gt;
&lt;li&gt;Attach only relevant code examples&lt;/li&gt;
&lt;li&gt;Validate whether the docs actually support the answer&lt;/li&gt;
&lt;li&gt;Generate grounded response with citations&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  🧠 High-level architecture
&lt;/h1&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%2Fgithub.com%2Fuser-attachments%2Fassets%2F22abd523-938f-48a8-8968-540e58091757" class="article-body-image-wrapper"&gt;&lt;img alt="concept" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fuser-attachments%2Fassets%2F22abd523-938f-48a8-8968-540e58091757" width="1766" height="659"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h1&gt;
  
  
  ⚙️ Tech stack
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;FastAPI (backend)&lt;/li&gt;
&lt;li&gt;Next.js + React (frontend)&lt;/li&gt;
&lt;li&gt;Chroma (vector DB)&lt;/li&gt;
&lt;li&gt;SQLite (metadata)&lt;/li&gt;
&lt;li&gt;Trafilatura + BeautifulSoup (extraction)&lt;/li&gt;
&lt;li&gt;OpenAI-compatible models (BYO provider)&lt;/li&gt;
&lt;li&gt;Typer CLI&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  🔥 Why I think this matters (especially now)
&lt;/h1&gt;

&lt;p&gt;With AI-assisted coding (or what people call &lt;em&gt;“vibe coding”&lt;/em&gt;), we move faster.&lt;/p&gt;

&lt;p&gt;But:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;docs are still the source of truth&lt;/li&gt;
&lt;li&gt;AI answers are not always reliable&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;DocsRAG tries to combine both:&lt;/p&gt;

&lt;p&gt;👉 fast iteration + grounded answers&lt;/p&gt;




&lt;h1&gt;
  
  
  🧪 Current state
&lt;/h1&gt;

&lt;p&gt;This is still early, but already working:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ingest public docs&lt;/li&gt;
&lt;li&gt;ask questions&lt;/li&gt;
&lt;li&gt;get explanation-first answers&lt;/li&gt;
&lt;li&gt;see citations&lt;/li&gt;
&lt;li&gt;attach relevant code examples&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  🤝 Looking for contributors
&lt;/h1&gt;

&lt;p&gt;If this resonates with you, I’d love contributions.&lt;/p&gt;

&lt;p&gt;Interesting areas:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;better parsing (docs are messy 😅)&lt;/li&gt;
&lt;li&gt;retrieval improvements&lt;/li&gt;
&lt;li&gt;code example ranking&lt;/li&gt;
&lt;li&gt;UI/UX improvements&lt;/li&gt;
&lt;li&gt;evaluation / benchmarking&lt;/li&gt;
&lt;li&gt;MCP / agent integrations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Even small contributions (docs, testing, feedback) are super helpful.&lt;/p&gt;




&lt;h1&gt;
  
  
  🎯 Goal
&lt;/h1&gt;

&lt;p&gt;The long-term goal is simple:&lt;/p&gt;

&lt;p&gt;👉 Make documentation &lt;strong&gt;actually usable during coding&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not just readable — but &lt;strong&gt;actionable&lt;/strong&gt;.&lt;/p&gt;




&lt;h1&gt;
  
  
  🙌 Closing
&lt;/h1&gt;

&lt;p&gt;This started from a very personal frustration:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;constantly jumping between docs while coding&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you’ve experienced the same thing, I’d love your thoughts&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>productivity</category>
      <category>rag</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
