Skip to main content

Connect knowledge base

To connect a knowledge base:

  1. Go to the Knowledge baseRAG section.

  2. Click Connect knowledge base.

  3. Select a knowledge base in the Knowledge base from Tovie Data Agent field. You can do this in different ways:

    • If in Tovie Data Agent you are using the same account as in Tovie Platform, then the field displays the knowledge bases from your account. Select one of them.

      tip

      If the project of this knowledge base does not have an API key, it will be created automatically. The name of the key is the Tovie Platform project identifier.

      If a key with this name already exists, Tovie Platform will use it for connection.

    • Select Add by API key and enter the knowledge base key in the API key field.

  4. Specify the settings:

    • Connection name: it can be any name but must contain only Latin letters, digits, and underscores. A secret with the same name will be added to the Secrets and variables section.

    • Add code to script: if the option is enabled, a request to the knowledge base will be automatically added to the script. For more information about working with the knowledge base, see the Use in script article.

  5. Click Connect.

The knowledge base will be displayed in the list. You can now use this knowledge base in the bot script.

tip

To learn more about the statuses and actions with knowledge bases, see the Manage knowledge bases section.

Secret for knowledge base

When you connect a knowledge base, a new secret is added to the Secrets and variables section:

  • The secret name matches the name of the knowledge base connection.

  • The secret stores the API key from the Tovie Data Agent project.

  • You can use the secret to access the knowledge base in the bot script.