curl --request POST \
--url https://api.trieve.ai/api/chunk_group/chunks \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Dataset: <tr-dataset>' \
--data '{
"chunk_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"chunk_tracking_ids": [
"<string>"
]
}'
[
{
"chunk_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slim_groups": [
{
"created_at": "2021-01-01 00:00:00.000",
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"description": "A group of chunks",
"file_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"name": "Trieve",
"tracking_id": "3",
"updated_at": "2021-01-01 00:00:00.000"
}
]
}
]
Route to get the groups that a chunk is in.
curl --request POST \
--url https://api.trieve.ai/api/chunk_group/chunks \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Dataset: <tr-dataset>' \
--data '{
"chunk_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"chunk_tracking_ids": [
"<string>"
]
}'
[
{
"chunk_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slim_groups": [
{
"created_at": "2021-01-01 00:00:00.000",
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"description": "A group of chunks",
"file_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"name": "Trieve",
"tracking_id": "3",
"updated_at": "2021-01-01 00:00:00.000"
}
]
}
]
The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.
JSON request payload to get the groups that a chunk is in
The body is of type object
.
JSON body representing the groups that the chunk is in
The response is of type object[]
.
Was this page helpful?