ctapi / README.md
Your Name
Clone api2 for experimentation
d78f02a
metadata
title: Clinical Trial API (Experiment)
emoji: 🧪
colorFrom: purple
colorTo: blue
sdk: docker
pinned: false
license: mit

Clinical Trial API - Experiment Space

Clone of api2 for testing changes before production

API Endpoint

POST /query
{
  "query": "What Novartis drugs treat melanoma?"
}

Features

  • LLM query parser (extracts drugs, diseases, companies, endpoints)
  • Targeted inverted index (drugs, diseases, companies, endpoints)
  • Hybrid RAG search (keyword + semantic)
  • Groq API support (10x faster than HuggingFace)
  • ~7 second response time

Test It

curl -X POST https://gmkdigitalmedia-ctapi.hf.space/query \
  -H "Content-Type: application/json" \
  -d '{"query": "Tell me about Keytruda for lung cancer"}'