A comprehensive RAG (Retrieval-Augmented Generation) system with web interface and API backend.
This system was originally based on AutoRAG but has been customized for specific use cases. For the original AutoRAG documentation and features, please visit the AutoRAG GitHub repository.
- Docker and Docker Compose installed
- Git
-
Clone the UI repository
You need to clone the UI repository to use the web interface:
git clone https://github.com/NYCU-CGI-LLM/rag-ui.git
-
Configure API environment
Copy the environment example file and add your OpenAI API key:
cp api/.env.dev.example api/.env.dev
Edit
api/.env.devand add your OpenAI API key:OPENAI_API_KEY=your_openai_api_key_here
-
Start the system
Run the entire system using Docker Compose:
docker compose up -d
Once the system is running, you can access the following services:
- Web Interface: http://localhost:3000
- API Server: http://localhost:8000
- Database Admin (Adminer): http://localhost:8080
- Flower (Celery Monitor): http://localhost:5555 (if enabled)
The system includes the following components:
- PostgreSQL: Database for storing application data
- Redis: Cache and message broker
- Qdrant: Vector database for embeddings
- MinIO: Object storage for files
- API Server: FastAPI backend
- Web UI: Next.js frontend
The system uses the following key environment variables (configured in docker-compose.yml):
DATABASE_URL: PostgreSQL connection stringMINIO_*: MinIO storage configurationREDIS_*: Redis connection settingsQDRANT_*: Qdrant vector database settings
- Access the web interface at http://localhost:3000
- Upload your documents through the UI
- Configure your RAG pipeline using the web interface
- Start querying your documents
Once the API server is running, you can access the API documentation at:
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
To stop all services:
docker compose downTo stop and remove all data:
docker compose down -vIf you encounter issues:
-
Check service logs:
docker compose logs [service_name]
-
Restart services:
docker compose restart
-
Rebuild containers:
docker compose up --build
For the original AutoRAG project with full documentation, tutorials, and community support, please visit:
For issues related to this customized system, please create an issue in this repository.
For AutoRAG-related questions, please refer to the AutoRAG repository and their Discord community.