Get up and running with the Multi-Agent Q&A application in 5 minutes!
- Docker and Docker Compose installed
- Valid enterprise-inference API credentials
Create the API environment file:
cd multiagent-qna
cp api/env.example api/.envEdit api/.env with your credentials:
BASE_URL=https://your-enterprise-inference-url.com
KEYCLOAK_CLIENT_ID=your_client_id
KEYCLOAK_CLIENT_SECRET=your_client_secret
EMBEDDING_MODEL_ENDPOINT=bge-base-en-v1.5
INFERENCE_MODEL_ENDPOINT=Llama-3.1-8B-Instruct
EMBEDDING_MODEL_NAME=bge-base-en-v1.5
INFERENCE_MODEL_NAME=meta-llama/Llama-3.1-8B-Instructcd multiagent-qna
docker-compose up --buildWait for both services to start:
- Backend API on http://localhost:5001
- Frontend UI on http://localhost:3000
Open your browser and navigate to:
http://localhost:3000
You should see the Multi-Agent Q&A interface!
cd multiagent-qna/api
# Create virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Run the server
uvicorn server:app --reload --host 0.0.0.0 --port 5001cd multiagent-qna/ui
# Install dependencies
npm install
# Run development server
npm run dev-
Navigate to the Chat page
-
Type a question, for example:
- Code: "How do I create a Python function?"
- RAG: "Find information about machine learning"
- General: "What is the weather like?"
-
The system will automatically route your question to the appropriate agent
- Click on "Settings" in the header
- Modify agent configurations:
- Change roles, goals, or backstories
- Adjust max iterations
- Toggle verbose mode
- Click "Save Configuration"
- Test with new questions
curl http://localhost:5001/healthExpected response:
{
"status": "healthy",
"api_configured": true
}curl -X POST http://localhost:5001/chat \
-H "Content-Type: application/json" \
-d '{"message": "Hello!"}'Expected response:
{
"response": "Response from agent...",
"agent": "normal_agent"
}Error: Address already in use
Solution:
# Find and kill process on port 5001
lsof -ti:5001 | xargs kill -9
# Find and kill process on port 3000
lsof -ti:3000 | xargs kill -9
# Or change ports in docker-compose.ymlError: Authentication failed
Solution:
- Double-check your
.envcredentials - Verify BASE_URL is correct
- Ensure network access to enterprise-inference API
Solution:
- Check backend logs:
docker logs multiagent-qna-backend - Verify API is running:
curl http://localhost:5001/health - Check browser console for errors
- Read the README.md for detailed documentation
- Check TROUBLESHOOTING.md for more help
- Customize agent configurations in the Settings page
- Integrate with your own knowledge bases or APIs
User Query
↓
Orchestration Agent (routes to appropriate specialist)
↓
┌─────────────────────────────────────────┐
│ │
├─ Code Agent ─── For programming Q&A │
├─ RAG Agent ──── For document retrieval │
└─ Normal Agent ── For general questions │
The system automatically detects query type and routes to the best agent!
- Check logs:
docker logs multiagent-qna-backend - Review TROUBLESHOOTING.md
- Verify environment variables are set correctly
Happy chatting! 🚀