Agada is a hybrid AI-powered medical assistant designed to provide accurate information about medicines, their uses, side effects, and pricing in India. It combines a curated local knowledge base with real-time web search and Large Language Model (LLM) capabilities to deliver reliable responses.
- Hybrid Search Engine: Prioritizes local verified data (Indian Medicine Dataset) and falls back to real-time web search for the latest information.
- Intelligent Query Processing: Uses Groq (LLM) to understand natural language queries and format responses.
- Real-time Web Search: Integrated with DuckDuckGo (via
ddgs) to fetch current medical data when local data is insufficient. - Indian Context: Specifically tuned for Indian medicine brands, substitutes, and pricing (₹).
- Deployment Ready: Configured for serverless deployment on Vercel.
- Backend: Django 6.0.2
- AI/LLM: Groq API (Llama 3 / Mixtral)
- Search: Custom CSV-based Knowledge Base + DuckDuckGo (
ddgs) - Database: Supabase (Optional for cloud persistence)
- Static Files: Whitenoise
-
Clone the repository
git clone https://github.com/Vigneshwaren333/Agada.git cd Agada -
Create and activate a virtual environment
python -m venv venv # Windows .\venv\Scripts\activate # macOS/Linux source venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
-
Set up Environment Variables Create a
.envfile in the root directory:GROQ_API_KEY=your_groq_api_key SUPABASE_URL=your_supabase_url # Optional SUPABASE_KEY=your_supabase_key # Optional DJANGO_SECRET_KEY=your_django_secret DEBUG=True
-
Run Migrations
python manage.py migrate
-
Start the Development Server
python manage.py runserver
agent.py: Core logic for the Hybrid Medical Agent.knowledge_base.py: Manages local dataset (CSV) and Supabase interactions.web_search.py: Handles real-time web queries usingddgs.data/medicines.csv: The local dataset containing Indian medicine information.core/: Django app containing views and API endpoints.
This project is configured for Vercel deployment.
- Install Vercel CLI:
npm i -g vercel - Deploy:
Note: Ensure you add your Environment Variables in the Vercel Project Settings.
vercel
This tool is for informational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always consult with a qualified healthcare provider.