Retrieve Chunks Grouped
Retrieve relevant chunks with grouped response format.
Uses the same filter operators as /retrieve/chunks (equality, nested logic operators, $regex, $contains, etc.), with arbitrary nesting supported inside request.filters.
Returns both flat results (for backward compatibility) and grouped results (for UI). When padding > 0, groups chunks by main matches and their padding chunks.
Args: request: RetrieveRequest containing query parameters, metadata filters, and padding instructions auth: Authentication context
Returns: GroupedChunkResponse: Contains both flat chunks and grouped chunks
post/retrieve/chunks/grouped
Headers
authorizationstring
Request body
Response
Successful Response