惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
V
Visual Studio Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
博客园 - 【当耐特】
博客园 - 叶小钗
量子位
博客园 - 聂微东
S
SegmentFault 最新的问题
美团技术团队
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
宝玉的分享
宝玉的分享
小众软件
小众软件
罗磊的独立博客
有赞技术团队
有赞技术团队
Stack Overflow Blog
Stack Overflow Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I built ORAG - an organizational RAG and MCP platform in ...
Anmol Sharma · 2026-05-09 · via DEV Community

Anmol Sharma

I spent the last couple of days building something I kept wishing existed

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

The result is ORAG, an organizational RAG and MCP server platform built entirely in TypeScript.

Live at: https://orag.theanmolsharma.com/

Here's what I built, why, and the technical decisions that mattered.

The problem

Every team trying to build AI features on internal data hits the same wall.

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.

This is a context problem. Not a model problem. The model is fine. The context layer is missing.


What ORAG does

ORAG solves this in three layers:

1. RAG pipeline

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

2. MCP server

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.

3. Access control

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


The technical stack

Everything is TypeScript. Here's what each layer uses:

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

Why MCP?

The alternative is writing bespoke glue code for every integration. Every new agent, every new data source: custom connector, custom auth, custom error handling.

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.

This is what makes ORAG composable. You add a source once. Every agent that needs it just points at the MCP server.

The hard part: retrieval quality in production

RAG that works in a notebook is easy. RAG that works in production is not.

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.

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.


What I learned

Access control is where enterprise AI actually breaks.

It's not the model. It's not the retrieval. It's "can this agent see this data?"

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

The context layer is the missing infrastructure.

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.


Try it

ORAG is live at: https://orag.theanmolsharma.com/

GitHub link in my bio: github.com/Anmol202005/ORAG

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.

Follow me on X [@javanmol] for shorter takes on TypeScript and AI engineering.