<?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: Anmol Sharma</title>
    <description>The latest articles on DEV Community by Anmol Sharma (@javanmol).</description>
    <link>https://dev.to/javanmol</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%2F3920626%2F7ab11635-bd72-440f-bc24-7918111dbea1.png</url>
      <title>DEV Community: Anmol Sharma</title>
      <link>https://dev.to/javanmol</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/javanmol"/>
    <language>en</language>
    <item>
      <title>I built ORAG - an organizational RAG and MCP platform in TypeScript</title>
      <dc:creator>Anmol Sharma</dc:creator>
      <pubDate>Fri, 08 May 2026 19:17:37 +0000</pubDate>
      <link>https://dev.to/javanmol/i-built-orag-an-organizational-rag-and-mcp-platform-in-typescript-5e84</link>
      <guid>https://dev.to/javanmol/i-built-orag-an-organizational-rag-and-mcp-platform-in-typescript-5e84</guid>
      <description>&lt;p&gt;I spent the last couple of days building something I kept wishing existed&lt;/p&gt;

&lt;p&gt;A platform that takes your organization's internal data such as docs, wikis, databases and makes it actually usable by AI agents.&lt;/p&gt;

&lt;p&gt;The result is &lt;strong&gt;ORAG&lt;/strong&gt;, an organizational RAG and MCP server platform built entirely in TypeScript.&lt;/p&gt;

&lt;p&gt;Live at: &lt;a href="https://orag.theanmolsharma.com/" rel="noopener noreferrer"&gt;https://orag.theanmolsharma.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here's what I built, why, and the technical decisions that mattered.&lt;/p&gt;

&lt;h2&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.amazonaws.com%2Fuploads%2Farticles%2Fjdbszafaabzcdezx9px6.png" alt=" " width="800" height="401"&gt;
&lt;/h2&gt;

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

&lt;p&gt;Every team trying to build AI features on internal data hits the same wall.&lt;/p&gt;

&lt;p&gt;The LLM doesn't know what your data means. It doesn't know who owns it, whether it's trustworthy, or whether a given agent should even have access to it. You end up with AI that gives confident, wrong answers, which is worse than no answer at all.&lt;/p&gt;

&lt;p&gt;This is a context problem. Not a model problem. The model is fine. The context layer is missing.&lt;/p&gt;




&lt;h1&gt;
  
  
  What ORAG does
&lt;/h1&gt;

&lt;p&gt;ORAG solves this in three layers:&lt;/p&gt;

&lt;h2&gt;
  
  
  1. RAG pipeline
&lt;/h2&gt;

&lt;p&gt;Connect Notion, Confluence, S3, GitHub, or any custom source. ORAG handles chunking, embedding, and vector retrieval with a retrieval latency target of under 50ms.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. MCP server
&lt;/h2&gt;

&lt;p&gt;The retrieval layer is exposed as a Model Context Protocol server. One config file gives any AI agent structured, permissioned access to your org's knowledge base.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Access control
&lt;/h2&gt;

&lt;p&gt;Role-based permissions across every knowledge base and MCP server. Audit logs, team workspaces, and SSO. The stuff that makes enterprise AI actually deployable.&lt;/p&gt;




&lt;h1&gt;
  
  
  The technical stack
&lt;/h1&gt;

&lt;p&gt;Everything is TypeScript. Here's what each layer uses:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;LangChain.js for the RAG pipeline: document loading, chunking strategy, embedding models, and vector store integrations&lt;/li&gt;
&lt;li&gt;MCP protocol for the agent interface: typed, streaming, authenticated&lt;/li&gt;
&lt;li&gt;pgvector / Pinecone for vector retrieval&lt;/li&gt;
&lt;li&gt;Role-based access control built in from day one, not bolted on after&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Why MCP?
&lt;/h1&gt;

&lt;p&gt;The alternative is writing bespoke glue code for every integration. Every new agent, every new data source: custom connector, custom auth, custom error handling.&lt;/p&gt;

&lt;p&gt;MCP gives AI agents a standard interface. One config, and your agent can call your knowledge base like any other typed API, with streaming, auth, and observability included.&lt;/p&gt;

&lt;p&gt;This is what makes ORAG composable. You add a source once. Every agent that needs it just points at the MCP server.&lt;/p&gt;

&lt;h2&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.amazonaws.com%2Fuploads%2Farticles%2Fvc551zym7bbd92s8xa7h.png" alt=" " width="800" height="435"&gt;
&lt;/h2&gt;

&lt;h1&gt;
  
  
  The hard part: retrieval quality in production
&lt;/h1&gt;

&lt;p&gt;RAG that works in a notebook is easy. RAG that works in production is not.&lt;/p&gt;

&lt;p&gt;The gap is in the details: chunking strategy matters more than people think, retrieval scoring needs to be observable, and latency has to be predictable under load.&lt;/p&gt;

&lt;p&gt;I spent more time on the observability layer than anything else: full request tracing across retrievals, tool calls, and completions, with latency breakdowns and retrieval quality scores in one view. Without this, you're flying blind when something degrades.&lt;/p&gt;




&lt;h1&gt;
  
  
  What I learned
&lt;/h1&gt;

&lt;p&gt;Access control is where enterprise AI actually breaks.&lt;/p&gt;

&lt;p&gt;It's not the model. It's not the retrieval. It's "can this agent see this data?"&lt;/p&gt;

&lt;p&gt;Getting that right, with proper audit trails and workspace isolation, is what separates a demo from something you'd trust with real company data.&lt;/p&gt;

&lt;p&gt;The context layer is the missing infrastructure.&lt;/p&gt;

&lt;p&gt;Most AI tooling focuses on the model layer. The harder, less glamorous problem is making sure the model has the right context: trustworthy, governed, and relevant. That's the layer I wanted to build.&lt;/p&gt;




&lt;h1&gt;
  
  
  Try it
&lt;/h1&gt;

&lt;p&gt;ORAG is live at: &lt;a href="https://orag.theanmolsharma.com/" rel="noopener noreferrer"&gt;https://orag.theanmolsharma.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GitHub link in my bio: github.com/Anmol202005/ORAG&lt;/p&gt;

&lt;p&gt;If you're building AI systems on top of internal data and want to talk about the retrieval or MCP layer, reach out. Always happy to discuss what works and what doesn't.&lt;/p&gt;

&lt;p&gt;Follow me on X [&lt;a class="mentioned-user" href="https://dev.to/javanmol"&gt;@javanmol&lt;/a&gt;] for shorter takes on TypeScript and AI engineering.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>langchain</category>
      <category>mcp</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
