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.
Authorizations
Pinecone API Key
Path Parameters
The name of the assistant to be described.
Body
Parameters to retrieve context from an assistant.
The query that is used to generate the context. Exactly one of query or messages should be provided.
Optionally filter which documents can be retrieved using the following metadata fields.
{ "genre": { "$ne": "documentary" } }
The list of messages to use for generating the context. Exactly one of query or messages should be provided.
The MessageModel describes the format of a message in a chat.
The number of context snippets to return. Default is 15.
20
Response
The response format containing the context from an assistant.
The SnippetModel represents a part of a document that is relevant to the user query.
The UsageModel describes the usage of a chat completion.
Was this page helpful?