Javascript
import Morphik from 'morphik'; const client = new Morphik({ apiKey: 'My API Key', }); const chunkResults = await client.batch.retrieveChunks({ body: { foo: 'bar' } }); console.log(chunkResults);
[ { "content": "<string>", "score": 123, "document_id": "<string>", "chunk_number": 123, "metadata": {}, "content_type": "<string>", "filename": "<string>", "download_url": "<string>", "is_padding": false } ]
Retrieve specific chunks by their document ID and chunk number in a single batch operation.
Args: request: Dictionary containing:
Returns: List[ChunkResult]: List of chunk results
Successful Response
Whether this chunk was added as padding
Was this page helpful?