Rechunk a parse result with a different chunking strategy.
This endpoint initiates rechunking of an existing parse result using the specified chunking strategy. The operation is performed asynchronously via Temporal workflows.
Args: project_id: Project ID that the parse result belongs to parse_result_id: Parse result ID to rechunk request: Rechunk parse result request with chunking strategy and options
Returns: Job entity that can be used to track progress
Raises: HTTPException: If the parse result is not found or other errors occur
API key for authentication
Selected Account ID
Request model for rechunking a parse result.
Token-based chunking: Splits text into chunks by token count using a tokenizer (e.g., tiktoken). Best for LLM APIs with token limits, embedding models, and cost optimization. Use when you need precise control over token usage.
Successful Response
Job response model representing an asynchronous operation.
ID of the entity
ID of the project
Operation type (e.g., 'parse')
parse, extract, vector_store, chunk Current job status
pending, running, succeeded, failed When the job was created
"job"Source document/file ID
Request correlation ID for tracing
When the job started processing
When the job completed
Job result payload when completed
Error message if job failed
Timeline of job execution events