Upload and convert a corpus
Send amultipart/form-data request with the corpus archive and its metadata:
Query corpora
Download a converted corpus
Converted.exg files are publicly readable from Storage:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Upload, convert, and query corpora over REST
multipart/form-data request with the corpus archive and its metadata:
curl -X POST http://localhost:54321/functions/v1/convert-corpus \
-F "file=@corpus.zip" \
-F "name=my-corpus" \
-F "type=bible" \
-F "language=hebrew" \
-F "period=Biblical" \
-F "repository=https://github.com/..." \
-F "category=biblical"
{
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "processing"
}
# Get all corpora
curl http://localhost:54321/rest/v1/corpora \
-H "apikey: YOUR_ANON_KEY"
# Filter by language
curl "http://localhost:54321/rest/v1/corpora?language=eq.hebrew" \
-H "apikey: YOUR_ANON_KEY"
eq., ilike., in., ordering, pagination) works on the corpora table..exg files are publicly readable from Storage:
/storage/v1/object/public/corpora/datasets/{name}.exg