Collections
List a Collection's documents
A user can list a Collection's documents.
get/collections/{collection_id}/documents
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
collection_idstring required
This parameter refers to the unique identifier ( ID) of the Collection to filter results.
Query parameters
offsetinteger
This parameter refers to the number of documents to skip before retrieving results.
limitinteger
This parameter refers to the maximum number of documents to return in the result set.
metadata_filterstring
String containing metadata json dict to filter documents by metadata.
Response
Successful operation
Example response
[
{
"id": "123e4567-e89b-12d3-a456-426655440000",
"name": "The Hitchhiker's Guide to the Galaxy",
"chat_session_id": "123e4567-e89b-12d3-a456-426655440000"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.