An intelligent Retrieval-Augmented Generation (RAG) agent with a modern web interface.
246
This agent allows you to ingest documents, crawl websites, and chat with your data using local LLMs (via Ollama) or OpenAI. Refer to: https://n4igme.github.io/randscript/rag-agent/
crawl4ai support to scrape documentation directly into your knowledge base.The easiest way to run this agent is using docker-compose. Create a docker-compose.yml file:
services:
postgres:
image: pgvector/pgvector:pg15
environment:
POSTGRES_USER: raguser
POSTGRES_PASSWORD: ragpass
POSTGRES_DB: postgres
ports:
- "5432:5432"
web-app:
image: maruha/rag-agent:latest
ports:
- "8000:8000"
depends_on:
- postgres
environment:
- DATABASE_URL=postgresql://raguser:ragpass@postgres:5432/postgres
- OPENAI_API_KEY=ollama # Or your OpenAI key
- OPENAI_BASE_URL=http://host.docker.internal:11434/v1 # For local Ollama
- LLM_CHOICE=qwen2.5-coder
- EMBEDDING_MODEL=nomic-embed-text
| Variable | Description | Default |
|---|---|---|
DATABASE_URL | PostgreSQL connection string | Required |
OPENAI_API_KEY | OpenAI API Key or 'ollama' | Required |
OPENAI_BASE_URL | API base URL (use for Ollama/Local) | - |
LLM_CHOICE | Model name (e.g., gpt-4o-mini, mistral) | qwen2.5-coder |
EMBEDDING_MODEL | Vector model (e.g., nomic-embed-text) | nomic-embed-text |
http://localhost:8000 in your browser.Content type
Image
Digest
sha256:a5269a615…
Size
1.9 GB
Last updated
6 months ago
docker pull maruha/rag-agent