curl --request GET \
--url https://zeus-api.agentspro.cn/api/knowledge-base/kb_abc123/documents/doc_xyz789/chunks \
--header 'Authorization: Bearer <token>'
{
"chunks": [
{
"chunk_index": 0,
"content": "# Product User Guide\n\nThis document covers the installation, configuration, and usage of the product.",
"metadata": {
"source": "product-guide.pdf",
"page": 1
}
},
{
"chunk_index": 1,
"content": "## Installation Steps\n\n1. Download the latest installer package\n2. Run the installer...",
"metadata": {
"source": "product-guide.pdf",
"page": 2
}
}
],
"total": 45
}
Get all semantic chunks of a document
curl --request GET \
--url https://zeus-api.agentspro.cn/api/knowledge-base/kb_abc123/documents/doc_xyz789/chunks \
--header 'Authorization: Bearer <token>'
{
"chunks": [
{
"chunk_index": 0,
"content": "# Product User Guide\n\nThis document covers the installation, configuration, and usage of the product.",
"metadata": {
"source": "product-guide.pdf",
"page": 1
}
},
{
"chunk_index": 1,
"content": "## Installation Steps\n\n1. Download the latest installer package\n2. Run the installer...",
"metadata": {
"source": "product-guide.pdf",
"page": 2
}
}
],
"total": 45
}
status: completed.
curl --request GET \
--url https://zeus-api.agentspro.cn/api/knowledge-base/kb_abc123/documents/doc_xyz789/chunks \
--header 'Authorization: Bearer <token>'
{
"chunks": [
{
"chunk_index": 0,
"content": "# Product User Guide\n\nThis document covers the installation, configuration, and usage of the product.",
"metadata": {
"source": "product-guide.pdf",
"page": 1
}
},
{
"chunk_index": 1,
"content": "## Installation Steps\n\n1. Download the latest installer package\n2. Run the installer...",
"metadata": {
"source": "product-guide.pdf",
"page": 2
}
}
],
"total": 45
}