langflow-ai/openrag
Self-hosted document search and chat with Docling, Langflow, and OpenSearch
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
OpenRAG is an end-user RAG application, not just a workflow library. It pairs a Next.js frontend with a Python FastAPI backend. Docling parses documents for ingestion, Langflow orchestrates ingestion and retrieval, and OpenSearch backs semantic search. At query time, the RAG flow retrieves relevant material and uses it to ground the language model's response in the chat interface.
The Python package requires Python 3.13 or later. The repository separates application code in src/ and frontend/ from workflow and extension assets in flows/, custom_components/, customer_connectors/, and plugins/. For programmatic access, the REST API is complemented by a built-in streamable HTTP MCP server at /mcp; both use the OpenRAG API key via X-API-Key.
Key Capabilities & Differentiators
Users can bring documents into the knowledge base, search them semantically, and ask questions through chat. Langflow's visual editor lets teams change the workflow without rebuilding the application around it. Workflows can use reranking and multi-agent coordination. v0.8.1 added multilingual OCR support, and v0.8.2 added a URL connector as another ingestion path.
MCP clients can do more than query: the endpoint exposes RAG chat, semantic search, document ingestion, knowledge filters, and settings management. Account for those write and configuration operations when deciding where to distribute API keys. v0.8.1 also improved error handling and resilience for the RHOAI model provider, but the available details do not establish a complete provider, file-format, or OCR language matrix.
Trade-offs & Limitations
Compared with standalone Langflow, OpenRAG removes the work of wiring together the document-facing UI, ingestion, and search, while adopting Docling and OpenSearch as part of that packaged stack. Compared with a custom OpenSearch-backed service, it gets teams to a usable application sooner, but teams that need precise control over indexing, retrieval behavior, or the API may prefer to own those layers directly.
The trade is less integration code, not fewer services to operate. OpenSearch's default single-node configuration is not an HA design; plan for index growth, backups, and recovery, and test ingestion separately from query traffic. Local inference puts model capacity planning on your team, while hosted inference introduces provider costs and a data-handling review. Apache-2.0 permits commercial use of OpenRAG; model and external service terms remain separate.
Hardware & Deployment Guide
The documented self-hosting paths use Docker or Podman; a Python package installation is also available and requires Python 3.13 or later. docker-compose.yml runs single-node OpenSearch, applies -Xms1g -Xmx1g to its JVM, and passes OPENSEARCH_PASSWORD to the container as OPENSEARCH_INITIAL_ADMIN_PASSWORD. The image tag defaults to latest if OPENRAG_VERSION is unset, so set it explicitly for repeatable deployments. The tree includes docker-compose.gpu.yml, docker-compose.host-backend.yml, and kubernetes/; their presence does not establish a tested HA topology.
Budget separately for the search index, document parsing and OCR, and any inference run locally. Neither the configured JVM heap nor the GPU variant defines total RAM or VRAM requirements. Self-hosting the app does not make a workflow offline if it calls external model endpoints. v0.8.0 added HTTP metrics for Prometheus, while v0.8.2 added runtime base-path configuration, useful when deploying under a URL prefix.
/mcp endpoint uses streamable HTTP and the same X-API-Key as the REST API.client.chat.create.Teams that want a self-hosted document search and chat application with editable ingestion and retrieval workflows, plus REST and MCP access for integrations.
You only need an embeddable retrieval library, must retain an existing search backend, or require a turnkey HA or air-gapped deployment with no topology or model validation of your own.
Quick Start & Installation
pip install openrag-sdkComparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| openrag ★ | 4.7k | +5 | Python | Apache-2.0 | Self-hosted document search and chat with Docling, Langflow, and OpenSearch |
| WeKnora | 38.8k | +460 | Go | — | Self-hosted RAG, agents, and a Wiki on shared document knowledge bases |
| ragflow | 95.1k | +297 | Go | Apache-2.0 | Go-based RAG platform for parsing complex documents and grounding answers in sou |
| private-gpt | 57.7k | +14 | Python | Apache-2.0 | Self-hosted API for cited document RAG and tool use on local models |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/langflow-ai/openrag.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about openrag
How should an application or AI assistant connect to OpenRAG?
/mcp endpoint and send the OpenRAG API key in X-API-Key. The endpoint is built in; the standalone openrag-mcp package is deprecated.How much RAM or VRAM should I provision?
Can a company self-host OpenRAG commercially and keep its data on premises?
When is OpenRAG a better fit than Langflow alone or a custom OpenSearch app?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy