Updates the knowledge configuration of an agent version.
PATCH/api/v2/AgentVersion/:agentCode/:agentVersion/knowledge
Updates the knowledge configuration of an agent version.
Request
Path Parameters
The code of the agent.
The version number of the agent.
Query Parameters
Use this param to override the culture of the response. Options: - en (default) - es
- application/json
- text/json
- application/*+json
Body
The knowledge configuration request.
Array [
]
knowledgeSources
object[]
nullable
List of files to be integrated
metadata
object
Possible values: <= 1000 characters
Possible values: <= 1021 characters
List of dataset ids to be integrated as knowledge sources
advancedSettings
object
The mode of knowledge integration, which determines how the knowledge is integrated into the agent's context. If not provided, default values will be set
The model used to generate the embeddings IF changed, all files will be reprocessed.
Possible values: <= 1
The relevance score of the knowledge If not provided, default values will be set
Possible values: >= 1 and <= 100
Sets a limit on the number of sections to retrieve If not provided, default values will be set
Body
The knowledge configuration request.
Array [
]
knowledgeSources
object[]
nullable
List of files to be integrated
metadata
object
Possible values: <= 1000 characters
Possible values: <= 1021 characters
List of dataset ids to be integrated as knowledge sources
advancedSettings
object
The mode of knowledge integration, which determines how the knowledge is integrated into the agent's context. If not provided, default values will be set
The model used to generate the embeddings IF changed, all files will be reprocessed.
Possible values: <= 1
The relevance score of the knowledge If not provided, default values will be set
Possible values: >= 1 and <= 100
Sets a limit on the number of sections to retrieve If not provided, default values will be set
Body
The knowledge configuration request.
Array [
]
knowledgeSources
object[]
nullable
List of files to be integrated
metadata
object
Possible values: <= 1000 characters
Possible values: <= 1021 characters
List of dataset ids to be integrated as knowledge sources
advancedSettings
object
The mode of knowledge integration, which determines how the knowledge is integrated into the agent's context. If not provided, default values will be set
The model used to generate the embeddings IF changed, all files will be reprocessed.
Possible values: <= 1
The relevance score of the knowledge If not provided, default values will be set
Possible values: >= 1 and <= 100
Sets a limit on the number of sections to retrieve If not provided, default values will be set
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Knowledge configuration updated successfully.
If the request is invalid or referenced files/datasets do not exist.
The user is unauthorized or the session expired
The user does not have permission
If the agent or version is not found.
There was an unexpected error