Collections
List collections.
List collections for a given user. If sort_column is not specified, the output is sorted by by last update time in descending order.
get/collections
Request
- Base URLhttps://h2ogpte.genai.h2o.ai/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
offsetinteger
How many collections to skip before returning.
limitinteger
How many collections to return.
sort_column'name' | 'document_count' | 'document_size' | 'updated_at' | 'sessions_count'
Sort column.
ascendingboolean
When true, returns sorted by sort_column in ascending order.
metadata_filterstring
Only returns collections with metadata matching this filter.
name_filterstring
Only returns collections with names matching this filter.
current_user_onlyboolean
When true, will only return the user owned collections.
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.