Manage Assistants
Retrieve context from an assistant
Retrieve context snippets from an assistant to use as part of RAG or any agentic flow.
For guidance and examples, see Retrieve context snippets.
post/chat/{assistant_name}/context
Request
- Base URLhttps://unknown
- AuthAPI key in header Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
assistant_namestring required
The name of the assistant to be described.
Headers
X-Pinecone-Api-Versionstring required
Required date-based version header
Request body
Example request
{
"filter": {
"genre": {
"$ne": "documentary"
}
},
"top_k": 20,
"snippet_size": 4096
}Response
Context retrieval process successful.
Example response
{
"snippets": [
{
"reference": {
"file": {
"size": 1048576,
"metadata": {
"created_by": "Jane Doe",
"published": "2025-10-01",
"tags": [
"report",
"Q4",
"analytics"
]
},
"created_on": "2025-10-01T12:30:00Z",
"updated_on": "2025-10-01T12:45:00Z",
"signed_url": "https://storage.googleapis.com/bucket/file.pdf?..."
}
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.