Skip to content

tkwind/ClinIQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClinIQ

Live Demo License: MIT

ClinIQ is an evidence-first medical research discovery and summarization platform. It bridges the gap between raw medical literature (PubMed) and actionable clinical insights by using advanced AI and deterministic ranking algorithms.

Note

AI-Enhanced, Not AI-Driven: ClinIQ prioritizes source reliability. All AI-generated summaries are strictly validated against a deterministic ranking engine to ensure ZERO hallucination of research papers.


🚀 Key Features

  • Intelligent Query Expansion: Automatically expands vague disease queries (e.g., "lung cancer") into comprehensive search terms covering treatments, clinical trials, and survival outcomes.
  • Evidence Ranking Engine: A transparent scoring system that ranks papers based on publication recency, clinical intent, and relevance to the specific condition.
  • Validated AI Summaries: Uses NVIDIA NIM (Llama 3.1 70B) to format complex research data into readable summaries.
  • Hallucination Prevention: Features a built-in validation layer that rejects AI outputs if they mention papers or details not present in the original source data.
  • Location-Aware Findings: Filters and prioritizes research relevant to specific geographic locations when provided.

🛠️ Tech Stack

Backend

Frontend


💻 Local Development

Prerequisites

Backend Setup

  1. Navigate to the backend directory:
    cd backend
  2. Create and activate a virtual environment:
    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  3. Install dependencies:
    pip install -r requirements.txt
  4. Create a .env file:
    NVIDIA_NIM_API_KEY=your_key_here
    ALLOW_ORIGINS=http://localhost:5173
  5. Run the server:
    uvicorn main:app --reload

Frontend Setup

  1. Navigate to the frontend directory:
    cd frontend
  2. Install dependencies:
    npm install
  3. Create a .env file:
    VITE_API_URL=http://localhost:8000
  4. Run the development server:
    npm run dev

🌍 Deployment

Backend (Railway)

  1. Set the root directory to backend/.
  2. Ensure NVIDIA_NIM_API_KEY and ALLOW_ORIGINS (your Vercel URL) are set in environment variables.
  3. Railway will use the provided railway.json and runtime.txt for configuration.

Frontend (Vercel)

  1. Set the root directory to frontend/.
  2. Add VITE_API_URL pointing to your Railway service.
  3. Ensure the Build Command is npm run build and Output Directory is dist.

⚖️ License

Distributed under the MIT License. See LICENSE for more information.

About

Evidence-first AI medical research assistant that retrieves, ranks, and synthesizes verified publications with strict confidence alignment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors