Dynamic Chunking
Endpoint to get chunks by file id from a specified knowledge base with pagination.
The ID of the knowledge base
The ID of the file
Page number (0-based)
0Number of chunks per page
20Successful Response
Not Found
Validation Error
Internal Server Error
Endpoint to create a new chunk based on the file id to a specified knowledge base.
This endpoint will:
Generate chunk metadata: chunk ID, relationships with adjacent chunks.
Process the chunk through the Data Generator and Indexer.
Update the metadata of neighboring chunks to maintain proper relationships.
The ID of the knowledge base
The ID of the file
The body of the request
The ID of the chunk that should follow the created chunk in the sequence.
The ID of the chunk that should precede the created chunk in the sequence.
Successful Response
Bad Request
Validation Error
Internal Server Error
Endpoint to delete all file chunks by file id from a knowledge base.
The ID of the knowledge base
The ID of the file
Successful Response
Not Found
Validation Error
Internal Server Error
Endpoint to get a chunk based on the chunk id from a file in a specified knowledge base.
The ID of the knowledge base
The ID of the file
The ID of the chunk
Successful Response
Not Found
Validation Error
Internal Server Error
Endpoint to update a chunk based on the chunk id from a file in a specified knowledge base.
This endpoint will:
Update the chunk's text content and/or metadata, but ignoring the system-managed metadata fields (file_id, chunk_id, previous_chunk, next_chunk, parent_chunk, children_chunk, order)
When updating text content:
Triggers re-processing of the chunk using the data generator
Re-indexes the chunk with updated vector embeddings based on the new text
When only updating metadata:
Can only add or modify existing metadata fields
Cannot remove existing metadata keys
System-managed metadata fields (file_id, chunk_id, etc.) are preserved
Return the updated chunk information
The ID of the knowledge base
The ID of the file
The ID of the chunk
The body of the request
The text content of the chunk.
The structure of the chunk.
uncategorizedSuccessful Response
Not Found
Validation Error
Internal Server Error
Endpoint to delete a chunk based on the chunk id from a file in a specified knowledge base.
This endpoint will:
Delete the chunk from the vector database.
Update the metadata of the next and previous chunks to reflect the deletion.
The ID of the knowledge base
The ID of the file
The ID of the chunk
Successful Response
Not Found
Validation Error
Internal Server Error
Endpoint to update a chunk metadata based on the chunk id from a file in a specified knowledge base.
This endpoint will:
Update only the chunk's metadata fields, but ignoring the system-managed metadata fields (file_id, chunk_id, previous_chunk, next_chunk, parent_chunk, children_chunk, order)
When updating metadata:
Can only add or modify existing metadata fields (source, source_type, loaded_datetime, etc.)
Cannot remove existing metadata keys
Return the updated chunk information with the modified metadata
The ID of the knowledge base
The ID of the file
The ID of the chunk
The chunk metadata to update
Successful Response
Not Found
Validation Error
Internal Server Error
Endpoint to merge multiple chunks based on the chunk ids from the request body.
This endpoint will:
Merge the chunks (text and metadata) based on the chunk ids.
Process the merged chunk through DPO pipeline (from Data Generator component).
Delete the original chunks that are merged.
Update the metadata of next chunk to maintain proper relationships.
The ID of the knowledge base
The ID of the file
The list of chunk IDs to merge
The IDs of the chunks to merge.
Successful Response
Bad Request
Not Found
Validation Error
Internal Server Error
Endpoint to process a file to a specified knowledge base.
⚠️ WARNING: This endpoint is not implemented yet.
The ID of the knowledge base
The type of the file. File type could be FILE or URL.
The ID of the file. If not provided, the file id will be generated.
The file to be processed.
The url of the file to be processed.
Successful Response
Validation Error
No content
This endpoint accept POST request to process a file to chunks with configuration specified in the request. If no configuration is specified, the default configuration in the knowledge base will be used. The input to be processed can be a file upload or a URL.
The ID of the knowledge base
The input to be processed. Can be a file upload or a URL.
The type of the input. Can be FILE or URL.
The name of the input file. Required for non-UploadFile inputs when type is FILE.
The DPO processing configuration.
Successful Response
Bad Request
Validation Error
Internal Server Error
Endpoint to split a chunk based on the chunk id, and the split indices from the request body.
This endpoint will:
Split the existing chunk into two new chunks at the specified split index.
Maintain proper ordering and relationships between chunks.
Process the new chunks through the Data Generator and Indexer.
Update the metadata of next chunk to maintain proper relationships.
The ID of the knowledge base
The ID of the file
The ID of the chunk
The split indices
The index of the split point. Valid range: 1 to length-1
Successful Response
Bad Request
Not Found
Validation Error
Internal Server Error
Endpoint to get the processing configuration for specified knowledge base.
The ID of the knowledge base
Successful Response
Validation Error
Internal Server Error
Last updated