Skip to content

Quick Start

Get up and running with Gilial’s REST API in 5 minutes.

Configure your Pinecone credentials in your terminal:

Terminal window
export PINECONE_API_KEY="your-pinecone-api-key"
export PINECONE_INDEX_NAME="your-index-name"
export PINECONE_ENVIRONMENT="us-west-1" # or your region

Start the Gilial backend:

Terminal window
python backend/main.py

Server will start at http://localhost:8000

Terminal window
curl http://localhost:8000/status

Response:

{
"index_name": "your-index",
"total_vector_count": 10000,
"dimension": 768
}

Preview how much space you’ll save:

Terminal window
curl http://localhost:8000/estimate?strategy=balanced

Response:

{
"original_vectors": 10000,
"compressed_vectors": 9739,
"savings_pct": 2.61
}
Terminal window
curl -X POST http://localhost:8000/compress \
-H "Content-Type: application/json" \
-d '{"strategy": "balanced", "dry_run": true}'
Terminal window
curl -X POST http://localhost:8000/compress \
-H "Content-Type: application/json" \
-d '{"strategy": "balanced", "dry_run": false}'
  • Balanced (default) - Good mix of compression and safety
  • Aggressive - Maximum compression for space-critical scenarios