Quickstart
This guide will walk you through setting up Youtu-RAG, configuring necessary services, and starting the system.
Environment Requirements
- Python: 3.12+
- Package Manager: Recommended to use uv
- Operating System: Linux Desktop / macOS / Windows
Installation & Setup
1. Clone the Repository
First, clone the repository and set up the Python environment.
Service Configuration
2. Object Storage (MinIO) Configuration
MinIO is a high-performance object storage service used to store uploaded document files (still locally managed).
For installation instructions, please refer to the official MinIO repository. Two installation methods are supported:
- Install from Source: Build and install MinIO from source code
- Build Docker Image: Deploy MinIO using Docker containers
Quick Start with Docker:
After starting, access MinIO console at http://localhost:9001 with credentials minioadmin/minioadmin.
3. Model Deployment
The following models need to be deployed for Youtu-RAG to function properly:
| Model | HuggingFace | Deployment Method | Required |
|---|---|---|---|
| Youtu-Embedding | HuggingFace | Local or API | ✅ Required |
| Youtu-Parsing | HuggingFace | Local or API | ⭕ Optional |
| Youtu-HiChunk | HuggingFace | Local or API | ⭕ Optional |
Note: You can also use other compatible API services for Embedding, OCR, and Chunking instead of deploying these models locally.
Environment Variables Configuration
4. Configure Core Environment Variables
Edit the .env file and fill in the following core configurations:
LLM Configuration (Required)
Embedding Configuration (Required)
Option 1: Local Service (Youtu-Embedding-2B)
Option 2: Other API Services
MinIO Configuration (Required)
Optional Services
Reranker Configuration (Optional, improves retrieval accuracy)
OCR Configuration (Optional, locally deployable Youtu-Parsing)
Chunk Configuration (Optional, locally deployable Youtu-HiChunk)
Memory Function (Optional)
Note: If you don't need OCR and Chunk features, you can disable them by setting
ocr enabled: falseandchunk enabled: falseinconfigs/rag/file_management.yaml.
For complete environment variable configuration details, please refer to Environment Variables Documentation.
Start the Service
5. Launch Youtu-RAG
After successful startup, access the following addresses:
- 📱 Frontend Interface: http://localhost:8000
- 📊 Monitoring Dashboard: http://localhost:8000/monitor
Using the System
6. Getting Started with WebUI
Once the service is running, you can start using Youtu-RAG through the web interface:
File Management
- Click "File Management" in the left sidebar
- Upload files (PDF, Excel, Images, etc.)
- View file processing status and preview content
Knowledge Base Management
- Click "Knowledge Base" in the left sidebar
- Create a new knowledge base
- Associate files, databases, or Q&A examples
- Build vector indices
Intelligent Dialogue
- Click "Dialogue" in the left sidebar
- Select an agent (Chat, KB Search, Text2SQL, etc.)
- Select a knowledge base if required
- Enable "Memory" switch for better context retention
- Start chatting!
For detailed usage instructions, please refer to WebUI Guide.
Advanced Configuration
Tracing & Monitoring
Youtu-RAG integrates Phoenix for tracing and monitoring agent execution flow.
Database Configuration
By default, Youtu-RAG uses SQLite for storing system data. You can configure a different database:
Vector Store Configuration
Troubleshooting
Common Issues
Issue 1: MinIO connection failed
- Ensure MinIO service is running:
docker ps | grep minio - Verify MinIO endpoint and credentials in
.envfile
Issue 2: Embedding service unavailable
- Check if Youtu-Embedding service is running
- Verify
UTU_EMBEDDING_URLis correct - Test the endpoint:
curl http://localhost:8081/health
Issue 3: OCR/HiChunk not working
- Check if these services are properly deployed
- Or disable them in
configs/rag/file_management.yaml:
Issue 4: Port already in use
- Change the server port in
.env:
Next Steps
- Explore Agents: Try different agents for various tasks in the WebUI
- Upload Documents: Build your knowledge base with your own documents
- Enable Memory: Turn on the memory feature for better conversation experience
- Check Benchmarks: Learn about Youtu-RAG's performance in the README
For more detailed documentation:
- WebUI Guide - Complete guide to using the web interface
- Environment Variables - All configuration options
