Create a new Agent with a specific configuration.
This creates a specialized RAG Agent which queries over one or multiple Datastores to retrieve relevant data on which its generations are grounded.
Retrieval and generation parameters are defined in the provided Agent configuration.
Note that self-serve users are currently required to create agents through our UI. Otherwise, they will receive the following message: “This endpoint is disabled as you need to go through checkout. Please use the UI to make this request.”
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Input to Create Agent request
Name of the agent
3 - 200Instructions that your agent references when generating responses. Note that we do not guarantee that the system will follow these instructions exactly.
8000Instructions on how the agent should respond when there are no relevant retrievals that can be used to answer a query.
8000Instructions on how the agent should handle multi-turn conversations.
8000The prompt to an LLM which determines whether retrieved chunks are relevant to a given query and filters out irrelevant chunks.
8000These queries will show up as suggestions in the Contextual UI when users load the agent. We recommend including common queries that users will ask, as well as complex queries so users understand the types of complex queries the system can handle. The max length of all the suggested queries is 1000.
The following advanced parameters are experimental and subject to change.
Description of the agent
500The template defining the base configuration for the agent. This can be a built-in template (DefaultTemplateName) or a custom template name
default, finance, customer_support, company_policy_q_and_a The IDs of the datastore to associate with this agent.
Successful Response