google-drive-rag API
Endpoints for google-drive-rag operations.
Endpoints
- GET /api/google-drive-rag/folders/folder_id"}/files
- POST /api/google-drive-rag/sync
- POST /api/google-drive-rag/embed/folder_id"}
- GET /api/google-drive-rag/status/folder_id"}
- GET /api/google-drive-rag/health
GET /api/google-drive-rag/folders/{folder_id}"}/files
List Drive Folder Files
List all files in a Google Drive folder
Shows:
- File names and metadata
- Embedding status
- Quick stats
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
folder_id | path | string | Yes | - |
Responses
200: Successful Response
422: Validation Error
Examples
curl -X GET "https://api.altsportsdata.com/api/google-drive-rag/folders/{folder_id}"}/files" \
-H "Content-Type: application/json"POST /api/google-drive-rag/sync
Sync Drive Folder To Rag
Sync Google Drive folder to Vertex AI RAG corpus
Process:
- List all files in Drive folder
- Download files not yet embedded
- Upload to Vertex AI RAG corpus
- Track embedding status
Request Body
{}Responses
200: Successful Response
422: Validation Error
Examples
curl -X POST "https://api.altsportsdata.com/api/google-drive-rag/sync" \
-H "Content-Type: application/json" \
-d '{}'POST /api/google-drive-rag/embed/{folder_id}"}
Embed All Drive Files
Embed all files from Drive folder to RAG corpus
One-click action to:
- Download all files
- Upload to RAG
- Create embeddings
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
folder_id | path | string | Yes | - |
Responses
200: Successful Response
422: Validation Error
Examples
curl -X POST "https://api.altsportsdata.com/api/google-drive-rag/embed/{folder_id}"}" \
-H "Content-Type: application/json"GET /api/google-drive-rag/status/{folder_id}"}
Get Folder Sync Status
Get sync and embedding status for a Drive folder
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
folder_id | path | string | Yes | - |
Responses
200: Successful Response
422: Validation Error
Examples
curl -X GET "https://api.altsportsdata.com/api/google-drive-rag/status/{folder_id}"}" \
-H "Content-Type: application/json"