Skip to content

Week5 assignment igniters odessey - Drug Interaction System (RAG)#2059

Open
meayesha wants to merge 2 commits intoed-donner:mainfrom
meayesha:week5-assignment-igniters-odessey
Open

Week5 assignment igniters odessey - Drug Interaction System (RAG)#2059
meayesha wants to merge 2 commits intoed-donner:mainfrom
meayesha:week5-assignment-igniters-odessey

Conversation

@meayesha
Copy link
Contributor

@meayesha meayesha commented Mar 5, 2026

This pull request introduces a Retrieval-Augmented Generation (RAG) system designed to answer pharmacological questions about drug interactions, mechanisms, and medication safety. This system simulates a clinical pharmacology assistant, capable of analyzing interactions between medications and explaining potential risks.

Knowledge Base:
The system uses structured markdown documents describing drug properties and interactions.
-Each document contains:
- drug class
- mechanism of action
- common uses
- side effects
- drug interaction sections
- clinical guidance

Implementation Details:
Data Ingestion Pipeline (ingest.py)

  • The ingestion pipeline processes pharmacology documents and builds a vector database for semantic search.

Retrieval & Answer Generation (answer.py):

  • This module implements the RAG reasoning pipeline.

User Interface (app.py):
The application provides a simple Gradio-based interface.

  • Features include:
    • Interactive Chat
    • Users can ask pharmacology questions, such as:
      • "Can metformin interact with propranolol?"
      • "Is warfarin safe with antibiotics?"
      • "What happens if insulin is used with corticosteroids?"
Screenshot 2026-03-05 at 12 09 28 PM Screenshot 2026-03-05 at 12 10 41 PM Screenshot 2026-03-05 at 12 11 22 PM

@iamumarjaved

@iamumarjaved
Copy link
Contributor

Hello @meayesha Thank you for the submission. Please raise 1 PR per 1 Week's exercise I see this PR contains 2 week's Exercises.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants