Documents
Lists collections for containing a given document.
Lists collections for containing a given document.
get/documents/{document_id}/collections
Request
- Base URLhttps://h2ogpte.genai.h2o.ai/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
document_idstring required
Id of the document.
Query parameters
offsetinteger
How many collections to skip before returning.
limitinteger
How many collections to return.
Response
Successful operation
Example response
[
{
"id": "123e4567-e89b-12d3-a456-426655440000",
"name": "My sci-fi library",
"description": "Collection of my favourite sci-fi books",
"embedding_model": "BAAI/bge-large-en-v1.5",
"prompt_template_id": "4e400991-c459-455f-995c-dc6f55ffdb90"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.