Spaces:
Sleeping
Sleeping
metadata
title: Dr Gini DocRAG
emoji: 🧬
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
Dr. Gini DocRAG Service
Chat with documents using Claude AI for drug discovery research.
API Endpoints
POST /docrag
Chat with selected documents.
Request:
{
"userId": "user123",
"sessionId": "sess456",
"query": "Summarize the key findings",
"selectedDocs": [
{
"driveFileId": "1ABC123xyz",
"fileName": "paper.pdf",
"mimeType": "application/pdf"
}
]
}
Response:
{
"success": true,
"query": "Summarize the key findings",
"answer": "The document presents...",
"documentsUsed": ["paper.pdf"]
}
GET /health
Health check endpoint.
GET /test-drive
Test Google Drive service account connection.
Setup
Required secrets:
ANTHROPIC_API_KEY- Claude API keyGOOGLE_SERVICE_ACCOUNT- Full JSON from service account keyDOCRAG_API_KEY- (Optional) API key for authentication