curl --request POST \
--url https://api.orq.ai/v2/knowledge/{knowledge_id}/datasources/{datasource_id}/chunks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"text": "<string>",
"embedding": [
123
],
"metadata": {}
}
]
'[
{
"_id": "<string>",
"text": "<string>",
"enabled": true,
"status": "pending",
"created": "<string>",
"updated": "<string>",
"metadata": {},
"created_by_id": "<string>",
"update_by_id": "<string>"
}
]curl --request POST \
--url https://api.orq.ai/v2/knowledge/{knowledge_id}/datasources/{datasource_id}/chunks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"text": "<string>",
"embedding": [
123
],
"metadata": {}
}
]
'[
{
"_id": "<string>",
"text": "<string>",
"enabled": true,
"status": "pending",
"created": "<string>",
"updated": "<string>",
"metadata": {},
"created_by_id": "<string>",
"update_by_id": "<string>"
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the knowledge
Unique identifier of the datasource
Chunk successfully created
The unique identifier of the chunk
The text content of the chunk
Whether the chunk is enabled
The status of the chunk
pending, processing, completed, failed, queued The date and time the chunk was created
The date and time the chunk was updated
The unique identifier of the user who created the chunk
The unique identifier of the user who updated the chunk
Was this page helpful?