Chat with an assistant
Chat with an assistant and get back citations in structured form.
This is the recommended way to chat with an assistant, as it offers more functionality and control over the assistant’s responses and references than the OpenAI-compatible chat interface.
For guidance and examples, see Chat with an assistant.
Authorizations
Pinecone API Key
Path Parameters
The name of the assistant to be described.
Body
The list of queries / chats to chat an assistant
Optionally filter which documents can be retrieved using the following metadata fields.
If true, the assistant will be instructed to return a JSON response. Cannot be used with streaming.
The large language model to use for answer generation
gpt-4o
, claude-3-5-sonnet
If false, the assistant will return a single JSON response. If true, the assistant will return a stream of responses.
Response
The ChatModel describes the response format of a chat request from the citation api.
stop
, length
, content_filter
, function_call
The MessageModel describes the format of a message in a chat.
The UsageModel describes the usage of a chat completion.
Was this page helpful?