Doc_chat / README.md
PRSHNTKUMR's picture
Create README.md
ff8b2e3 verified
---
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:**
```json
{
"userId": "user123",
"sessionId": "sess456",
"query": "Summarize the key findings",
"selectedDocs": [
{
"driveFileId": "1ABC123xyz",
"fileName": "paper.pdf",
"mimeType": "application/pdf"
}
]
}
```
**Response:**
```json
{
"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 key
- `GOOGLE_SERVICE_ACCOUNT` - Full JSON from service account key
- `DOCRAG_API_KEY` - (Optional) API key for authentication