curl --request POST \ --url https://zeus-api.agentspro.cn/api/knowledge-base/preview-chunks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "content": "# Title\n\nFirst paragraph content...\n\nSecond paragraph content...\n\nThird paragraph content...", "chunk_size": 512, "chunk_overlap": 50, "delimiter": "\n\n" }'
{ "chunks": [ { "index": 0, "content": "# Title\n\nFirst paragraph content...", "length": 34 }, { "index": 1, "content": "Second paragraph content...", "length": 27 }, { "index": 2, "content": "Third paragraph content...", "length": 26 } ], "total": 3 }
Preview chunking results (for client-side debugging)
Show chunk object