No description
Find a file
2025-09-18 13:24:41 -04:00
.github/workflows Merge pull request #33 from langflow-ai/add-langflow-dockerfile-ci 2025-09-11 16:20:24 -04:00
assets adding tui screenshots 2025-09-10 13:06:47 -04:00
docs initial-build-no-errors 2025-09-18 13:24:41 -04:00
documents adds support to load files in document folder at startup 2025-09-03 13:41:53 -04:00
flows Update ingestion flow JSON to enhance metadata handling and improve component configurations 2025-09-09 00:13:26 -03:00
frontend add actions menu 2025-09-17 16:11:45 -05:00
keys empty keys directory 2025-09-02 17:12:21 -04:00
securityconfig os pw hash on startup 2025-09-03 10:33:20 -04:00
src tui: logs copy 2025-09-17 22:03:56 -04:00
.dockerignore Add environment and build file exclusions to .dockerignore 2025-09-08 18:06:18 -03:00
.DS_Store updated the default file loading task 2025-09-04 15:02:25 -04:00
.env.example Merge branch 'ingestion-flow' into langflow-ingestion-modes 2025-09-08 16:51:29 -04:00
.gitignore feat: Google Drive picker and enhancements 2025-09-03 14:11:32 -07:00
.python-version take 0 2025-07-10 22:36:45 -04:00
CONTRIBUTING.md Update CONTRIBUTING.md 2025-09-12 11:57:23 -04:00
docker-compose-cpu.yml make flows visible to backend container 2025-09-09 14:12:02 -04:00
docker-compose.yml make flows visible to backend container 2025-09-09 14:12:02 -04:00
Dockerfile chown 2025-09-03 22:22:20 -04:00
Dockerfile.backend make flows visible to backend container 2025-09-09 14:12:02 -04:00
Dockerfile.frontend change the parameter! 2025-09-08 15:42:20 -04:00
Dockerfile.langflow Create Dockerfile.langflow 2025-09-07 19:20:33 -04:00
Makefile replace knowledge table with ag grid 2025-09-17 14:33:59 -05:00
pyproject.toml v0.1.4 2025-09-17 22:04:20 -04:00
README.md Update README.md 2025-09-12 12:18:26 -04:00
uv.lock ocrmac, vlm for darwin 2025-09-15 14:29:31 -04:00
warm_up_docling.py Fix import statement for logging configuration in warm_up_docling.py 2025-09-08 12:26:51 -03:00

OpenRAG

OpenRAG is a comprehensive Retrieval-Augmented Generation platform that enables intelligent document search and AI-powered conversations. Users can upload, process, and query documents through a chat interface backed by large language models and semantic search capabilities. The system utilizes Langflow for document ingestion, retrieval workflows, and intelligent nudges, providing a seamless RAG experience. Built with Starlette, Next.js, OpenSearch, and Langflow integration. Ask DeepWiki

Langflow    OpenSearch    Starlette    Next.js

🚀 Quick Start

Prerequisites

  • Docker or Podman with Compose installed
  • Make (for development commands)

1. Environment Setup

# Clone and setup environment
git clone https://github.com/langflow-ai/openrag.git
cd openrag
make setup  # Creates .env and installs dependencies

2. Configure Environment

Edit .env with your API keys and credentials:

# Required
OPENAI_API_KEY=your_openai_api_key
OPENSEARCH_PASSWORD=your_secure_password
LANGFLOW_SUPERUSER=admin
LANGFLOW_SUPERUSER_PASSWORD=your_secure_password
LANGFLOW_CHAT_FLOW_ID=your_chat_flow_id
LANGFLOW_INGEST_FLOW_ID=your_ingest_flow_id
NUDGES_FLOW_ID=your_nudges_flow_id

ee extended configuration, including ingestion and optional variables: [docs/configuration.md](docs/ configuration.md)

3. Start OpenRAG

# Full stack with GPU support
make dev

# Or CPU only
make dev-cpu

Access the services:

🖥️ TUI Interface

OpenRAG includes a powerful Terminal User Interface (TUI) for easy setup, configuration, and monitoring. The TUI provides a user-friendly way to manage your OpenRAG installation without complex command-line operations.

OpenRAG TUI Interface

Launching the TUI

# Install dependencies first
uv sync

# Launch the TUI
uv run openrag

TUI Features

See the full TUI guide for features, navigation, and benefits: docs/tui.md

🐳 Docker Deployment

Standard Deployment

# Build and start all services
docker compose build
docker compose up -d

CPU-Only Deployment

For environments without GPU support:

docker compose -f docker-compose-cpu.yml up -d

More deployment commands and tips: docs/docker.md

🔧 Troubleshooting

Podman on macOS

If using Podman on macOS, you may need to increase VM memory:

podman machine stop
podman machine rm
podman machine init --memory 8192   # 8 GB example
podman machine start

Common Issues

See common issues and fixes: docs/troubleshooting.md

🛠️ Development

For developers wanting to contribute to OpenRAG or set up a development environment, please see our comprehensive development guide:

📚 See CONTRIBUTING.md for detailed development instructions

The contributing guide includes:

  • Complete development environment setup
  • Local development workflows
  • Testing and debugging procedures
  • Code style guidelines
  • Architecture overview
  • Pull request guidelines

Quick Development Commands

make help                    # See all available commands
make setup                   # Initial development setup
make infra                   # Start infrastructure services
make backend                 # Run backend locally
make frontend                # Run frontend locally