Quickstart
Get from zero to your first query in under 5 minutes.
1. Sign Up
Create a free account at the MedRAG portal.
Your free tier includes:
- 1 knowledge base
- 1,000 queries/month
- 10 MB storage (~5k chunks)
2. Create a Knowledge Base
curl -X POST https://your-instance/v1/knowledge-bases \
-H "Authorization: Bearer $MEDRAG_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "guidelines", "dimensions": 1024}'
3. Ingest a Document
curl -X POST https://your-instance/v1/documents \
-H "Authorization: Bearer $MEDRAG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"knowledge_base_id": "<kb-id>",
"title": "Hypertension Guidelines",
"content": "Blood pressure targets for adults..."
}'
4. Query
curl -X POST https://your-instance/v1/query \
-H "Authorization: Bearer $MEDRAG_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "blood pressure targets", "top_k": 5}'
Next Steps
- Authentication — API key management and OAuth
- Concepts — How MedRAG organizes your data
- MCP Integration — Connect your AI agent (Claude, Cursor) in one line
- API Reference — Full endpoint documentation