Create chunks/embeddings from existing content.
This endpoint processes uploaded content that was stored without ingestion
(ingest=False) and creates vector embeddings for it.
Args:
request: CreateChunksRequest containing:
- content_id: Content ID to process
- reader: Reader to use ("native", "langchain", "markitdown", etc.)
- force_rechunk: Whether to force re-chunking existing chunks
Returns:
CreateChunksResponse with processing results
Examples:
Create chunks for uploaded content:
POST /chunks/create
{
"content_id": "content_123",
"reader": "markitdown",
"force_rechunk": false
}
Force re-chunk with different reader:
POST /chunks/create
{
"content_id": "content_123",
"reader": "langchain_pdfplumber",
"force_rechunk": true
}