POST
/
chat
/
{assistant_name}
/
context

Authorizations

Api-Key
string
header
required

Pinecone API Key

Path Parameters

assistant_name
string
required

The name of the assistant to be described.

Body

application/json
The desired configuration to retrieve context from an assistant.

Parameters to retrieve context from an assistant.

query
string

The query that is used to generate the context. Exactly one of query or messages should be provided.

filter
object

Optionally filter which documents can be retrieved using the following metadata fields.

messages
object[]

The list of messages to use for generating the context. Exactly one of query or messages should be provided.

Response

200
application/json
Context retrieval process successful.

The response format containing the context from an assistant.

snippets
object[]
required
usage
object
required

The UsageModel describes the usage of a chat completion.

id
string