CTapi-raw / README.md
Your Name
Revert README config to match working space
a1a605d
metadata
title: CTapi-raw
emoji: 🧪
colorFrom: purple
colorTo: blue
sdk: docker
pinned: false
license: mit

CTapi-raw

Raw/Development version of Clinical Trial API

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-raw.hf.space/query \
  -H "Content-Type: application/json" \
  -d '{"query": "Tell me about Keytruda for lung cancer"}'