Spaces:
Running
Running
File size: 851 Bytes
5dfbe50 35a0354 5dfbe50 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
---
title: ColPali Backend API
emoji: π
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: apache-2.0
suggested_hardware: t4-small
---
# ColPali Backend API
This Space provides the backend services for ColPali visual document retrieval:
- **Hono Proxy API** on port 7860
- **ColPali Embedding Service** on port 8001 (internal)
## API Endpoints
### Query Endpoint
```
POST /api/query
Content-Type: application/json
{
"query": "your search query",
"limit": 10
}
```
### Health Check
```
GET /api/health
```
## Usage
Configure your frontend to point to:
```
https://[your-username]-[space-name].hf.space
```
## Environment Variables
Set these in your HF Space settings:
- `VESPA_ENDPOINT`: Your Vespa cluster endpoint
- `VESPA_CERT_PATH`: Path to Vespa certificates
- `CORS_ORIGIN`: Allowed origins for CORS (default: *)
|