Documentation Index
Fetch the complete documentation index at: https://docs.moorcheh.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Fetch stored items by id within a namespace. Item ids are unique per namespace, not globally.
- Text namespaces return
id, text, and metadata for each found item
- Vector namespaces return
id and metadata only (vectors are not returned)
Ids that do not exist are omitted from items; the request still returns 200 with found_items less than requested_ids.
Path parameters
Body
Non-empty array of item id strings. Maximum 100 ids per request.
curl -X POST "http://localhost:8080/namespaces/my-documents/items/get" \
-H "Content-Type: application/json" \
-d '{
"ids": ["doc-1", "doc-2"]
}'
Response fields
Request outcome. "success" when the lookup completed; "failure" on error.
Human-readable result or error description.
Number of ids sent in the request. Present on successful lookup.
Number of items returned in items. May be less than requested_ids if some ids were not found. Present on successful lookup.
Array of found items. Empty array when none of the requested ids exist. Present on successful lookup.
Stored document text. Present for text namespace items only.
Metadata stored with the item (custom fields from upload).
{
"status": "success",
"message": "Successfully retrieved 1 items from namespace 'my-documents'.",
"requested_ids": 2,
"found_items": 1,
"items": [
{
"id": "doc-1",
"metadata": { "team": "ai" },
"text": "Moorcheh on-prem retrieval test"
}
]
}
Important Notes
- Maximum 100 ids per request — use multiple requests for larger batches
- Missing ids are skipped; check
found_items vs requested_ids
- Vector embeddings are not included in the response