Saltar al contenido principal

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

    agentCode stringrequired

    The code of the agent.

    agentVersion int32required

    The version number of the agent.

Query Parameters

    culture string

    Use this param to override the culture of the response. Options: - en (default) - es

Body

The knowledge configuration request.

    knowledgeSources

    object[]

    nullable

    List of files to be integrated

  • Array [

  • id uuidnullable
    currentVersionId uuidnullable
    fileId uuidnullable
    url stringnullable
    active booleannullable

    metadata

    object

    description stringnullable

    Possible values: <= 1000 characters

    tags stringnullable

    Possible values: <= 1021 characters

  • ]

  • datasetSources uuid[]nullable

    List of dataset ids to be integrated as knowledge sources

    advancedSettings

    object

    integrationMode stringnullable

    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

    embeddingModelId uuidrequired

    The model used to generate the embeddings IF changed, all files will be reprocessed.

    embeddingModelCode stringnullable

    The model code used to generate the embeddings IF changed, all files will be reprocessed. Required if identifier is not provided.

    vendor stringnullable

    The model vendor used to generate the embeddings IF changed, all files will be reprocessed. Required if identifier is not provided.

    relevance doublenullable

    Possible values: <= 1

    The relevance score of the knowledge If not provided, default values will be set

    sectionsToRetrieve int32nullable

    Possible values: >= 1 and <= 100

    Sets a limit on the number of sections to retrieve If not provided, default values will be set

Responses​

Knowledge configuration updated successfully.

Loading...