Skip to content

sgtanvi/commure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RX-Check

AI-powered medication clarity and safety platform.

Built during the Commure Hackathon 2025, RX-Check helps patients and caregivers manage medications post-discharge by combining LLMs and vector search for clarity, safety, and ease of use.


🚀 Features

  • Upload prescriptions (PDF)
  • Track active/inactive medications
  • Generate medication summaries and warnings using Google Gemini
  • Semantic drug search with Pinecone
  • Support for multiple patient profiles and family management
  • Hoverable UI cards showing drug details and interactions

🧱 Tech Stack

  • Frontend: React, Material UI, Axios
  • Backend: FastAPI (Python), Uvicorn, Motor (MongoDB)
  • LLM: Google Gemini (gemini-1.5-pro)
  • Search: Pinecone + Sentence Transformers (all-MiniLM-L6-v2)

🖥️ Local Setup

1. Clone the repo

git clone https://github.com/sgtanvi/commure.git
cd commure

2. Set up environment variables

Create a .env file in the root of your backend with:

HOST=0.0.0.0
PORT=4000
LOCATION=us-central1
PINECONE_API_KEY= YOUR_API_KEY
GEMINI_API_KEY= YOUR_API_KEY
PINECONE_ENVO=us-east-1
MONGODB_URI=mongodb://localhost:27017
DB_NAME=rxcheck

3. Install backend dependencies

cd backend
pip install -r requirements.txt

4. Run backend server

uvicorn backend:app --reload --host localhost --port 4000

or

python backend.py

5. Start frontend

cd ../frontend
npm install
npm run dev

React will run on http://localhost:5173 and FastAPI backend on http://localhost:4000


📂 Project Structure

commure/
├── backend/
│   ├── backend.py               # FastAPI app
│   ├── pinecone_query.py        # Drug search logic
│   ├── pinecone_init.py         # Vector index initialization
│   ├── gemini_response.py       # Gemini API integration
├── frontend/
│   ├── components/
│   ├── pages/
│   ├── App.tsx                  # Main routes
│   └── LandingPage.tsx         # Prescription UI & summary

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors