Retrieve context snippets
Retrieve context snippets
This page shows you how to retrieve context snippets.
To try this in your browser, use the Pinecone Assistant - Context colab notebook.
Retrieve context snippets from an assistant
You can retrieve context snippets from an assistant, as in the following example:
The example above returns a JSON object like the following:
JSON
Limit the number of chunks retrieved
The top_k
parameter is available in API versions 2025-04
and later.
You can limit the number of chunks the reranker sends to the LLM. To do this, set the top_k
parameter (default is 15):
curl
Was this page helpful?