Open your terminal, navigate to the project folder, and start the Docker container.
cd /home/jeeva/Documents/Gen-AI-projects/ai-rag-chatbot-ollama-postgres-docker-main
docker compose up -d dbMake sure the Ollama service is active.
ollama serve(If it says "address already in use", it means it's already running in the background, which is good).
Navigate to the src directory and run the application.
cd src
python main.pyYou should see * Serving Flask app 'main' and * Running on http://127.0.0.1:8000.
Open a new terminal window and run this command to chat:
curl -X POST http://localhost:8000/api/v1/Alfred/Chat \
-H "Content-Type: application/json" \
-d '{"Question": "Can I clone a VM?"}'