alRetrieval
Ingest documents and query them with natural-language semantic retrieval. Supports PDF, DOCX, PPTX, TXT, and Markdown files.
- Path
- /v1/alRetrieval
- Key scope
- alretrieval
Supported file formats
PDF, DOCX, PPTX, TXT, MD
PDFs are processed via OCR; DOCX, PPTX, TXT, and MD have text extracted directly — no OCR cost
Scope Required: All alRetrieval endpoints require an API key with the alretrieval scope. Pass it as a Bearer token in the Authorization header.
POSTSuggested questions
Writes starter questions a reader would ask about the collection, drawn from every ready document, keeps only those the documents can answer, and stores them in place of the previous list. Costs 1 request. GET on the same path returns the stored list without generating, and is free.
POST /v1/alRetrieval/collections/{collection_id}/suggested-questions
GET /v1/alRetrieval/collections/{collection_id}/suggested-questions
Parameters:
| Parameter | Type | Description |
|---|---|---|
count | integer | optional — 1 to 12, default 6. The body may be omitted. |
Response (200 OK):
{
"questions": ["ما هي مدة الإجازة السنوية للعامل؟", "..."],
"document_ids": ["3146366e04ff"],
"generated_at": "2026-11-05T07:35:41Z"
}
POST first.
Ready to Get Started?
Generate an API key from your dashboard and start building