Skip to content

AutoPharma AI is an intelligent drug research assistant powered by Google Gemini 2.0 and DuckDuckGo Search. It automates the process of gathering medical information, providing structured, professional summaries for researchers and healthcare professionals.

Notifications You must be signed in to change notification settings

madhavmadupu/auto-pharma-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💊 AutoPharma AI Research Agent

Streamlit Gemini Python

AutoPharma AI is an intelligent drug research assistant powered by Google Gemini 2.0 and DuckDuckGo Search. It automates the process of gathering medical information, providing structured, professional summaries for researchers and healthcare professionals.

🚀 Live Demo: Check out the App

✨ Features

  • 🔍 Real-time Web Search: Fetches the latest drug information, side effects, and news using DuckDuckGo.
  • 🧠 AI Powered Summaries: Uses Gemini 2.0 Flash to synthesize disparate search results into a clean, readable report.
  • 📝 Research History: Automatically tracks your search queries in the sidebar for easy reference.
  • ⚙️ Model Selection: Switch between different Gemini models (e.g., gemini-2.0-flash-exp, gemini-2.0-flash) directly from the UI.
  • 🔒 Secure: API keys are handled securely via Streamlit secrets.

🧪 Research Workflow

AutoPharma doesn't just search the web; it uses an autonomous reasoning loop to determine which clinical data points are missing, executes targeted searches via DuckDuckGo, and synthesizes the findings into a medical-grade report using Gemini 2.0 Flash. image

🚀 Getting Started

Prerequisites

Installation

  1. Clone the repository (if applicable) or download the source code.

  2. Create a virtual environment:

    python -m venv venv
    # Windows
    .\venv\Scripts\activate
    # Mac/Linux
    source venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Configure API Key: Create a file named .streamlit/secrets.toml in the project root:

    # .streamlit/secrets.toml
    GOOGLE_API_KEY = "YOUR_API_KEY_HERE"

Running the App

streamlit run app.py

The application will launch in your default web browser at http://localhost:8501.

🛠️ Usage

  1. Enter Drug Name: Type the name of a drug (e.g., Metformin, Atorvastatin) in the main input field.
  2. Select Model: (Optional) Choose a specific Gemini model from the sidebar.
  3. Start Research: Click the "Start Research" button.
  4. Review Report: Read the generated summary covering overview, mechanism of action, side effects, and recent news.
  5. Check History: Previous searches are saved in the sidebar for quick access.

📦 Tech Stack

📄 License

This project is open-source and available under the MIT License.

About

AutoPharma AI is an intelligent drug research assistant powered by Google Gemini 2.0 and DuckDuckGo Search. It automates the process of gathering medical information, providing structured, professional summaries for researchers and healthcare professionals.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages