Get all chunks/vectors for a specific content in a collection.
Returns all the chunks (text segments with embeddings) that were created
when processing this content in the specified collection. This is useful for:
- Debugging vector search results
- Analyzing how content was chunked
- Inspecting chunk metadata
- Retrieving embeddings for analysis
**Important:** The same content can have different chunks in different collections
(due to different chunking strategies, embedding models, etc.), so `collection_id`
is required to ensure you get the correct set of chunks.
Args:
content_id: The unique identifier for the content
collection_id: The collection ID (ensures correct chunks are retrieved)
include_embeddings: Whether to include embedding vectors (default: false to save bandwidth)
Returns:
ContentChunksResponse with list of chunks and metadata
Example:
GET /contents/con_abc123/chunks?collection_id=col_xyz789&include_embeddings=false
Response:
{
"content_id": "con_abc123",
"collection_id": "col_xyz789",
"chunks": [
{
"id": "vec_chunk1",
"content_id": "con_abc123",
"content": "First chunk text...",
"embedding": null, // or array if include_embeddings=true
"meta_data": {"page": 1, "section": "intro"},
"collection_id": "col_xyz789",
"workspace_id": "wsp_123"
},
...
],
"total_chunks": 42,
"includes_embeddings": false
}
Raises:
404: If content not found or collection not accessible
500: If error retrieving chunks