Learn about the datasets that power our AI agents and how to utilize them effectively.
Bella gives you the ability to create various datasets which the bot will use as context when answering a user's questions.
A dataset is a JSON object that contains all of the data your AI Agent needs to answer a user's questions during a chat.
Datasets can include any information you want, but all data in the dataset should be relevant to the purpose of the dataset itself, ie, you should only include what is necessary when providing your dataset.
Here's an example dataset used to build the Muna Bot found on the BellaAI website:
{
"breed": "Jindo",
"color": "white",
"weight": {
"value": 22,
"unit": "lbs"
},
"hobbies": ["barking", "cuddling", "belly rubs"],
"cuteness": "Off the charts",
"diet": ["freeze dried dog food", "chicken", "beef", "frozen vegetables"],
}
When creating your dataset, it is vital to provide color to the AI Agent about what purpose this dataset is trying to achieve. The dataset's description offers you the ability to do this.
When creating a description for your dataset, be thorough and explicit. Never be vague and lean towards providing more information than less.
While many datasets will have self-documenting keys/values which the AI can easily infer the meaning of, in some cases you'll want to provide more clarification to your AI Agent about what a specific data key represents. In those cases, you can provide a JSON key/value object with the dataset key and a definition of what exactly that data point represents.
Dataset settings will default to your global again settings unless specified, however if specified, we will use the settings specific to your dataset. All of these can be managed using the API.
If these are not set for a dataset, your global agent settings will be used instead.
Setting Key | Type | Description |
---|---|---|
aiModels | SupportedAIModel[] | See "Supported AI Models" for list of default models used. |
defaultLanguage | String | Defaults to en_US . See "Supported Locales" below. |
isPredefinedOnly | Boolean | If false , the user can freely chat with your bot, otherwise only predefined
questions can be used. |
allowVoting | Boolean | If true , users will be able to vote on links provided by your bot. |