Ritambharam/medvectorai-reranker
0
MedVectorAI HF Reranker Service
This service exposes a public FastAPI reranking endpoint for MedVectorAI.
Endpoint
- POST /rerank
Request body:
{ "query": "What causes diabetes?", "chunks": [ {"text": "...", "chunkid": "..."} ], "topn": 6 }
Response body:
{ "rerankedchunks": [ {"text": "...", "chunkid": "...", "rerank_score": 0.91} ], "scores": [0.91] }
Deploy to Hugging Face Spaces (Docker)
- Create a new Space on Hugging Face.
- Choose SDK: Docker.
- Upload the files in this folder:
- app.py
- requirements.txt
- Dockerfile
- After build, your endpoint URL will look like:
- https://<space-name>.hf.space/rerank
- Set this URL in Render env var:
- HFRERANKAPI_URL
Health check
- GET /health
