Prerequisites
Before you add the Knowledge Base element to a flow, you need to:- Have a Plural account with the Knowledge Base feature enabled.
- Create and populate a Knowledge Base from the Knowledge Bases section in the left navigation bar.
- Have GOs available in your account — the Knowledge Base consumes GOs every time it generates a response.
Set up a Knowledge Base
Create a new Knowledge Base
In Plural, click Knowledge Bases in the left navigation bar. Click Create New Knowledge Base, give it a name, and select the primary language your Avatar will speak. The Knowledge Base is multilingual — you only need to specify the default language at creation time.
Upload PDF data sources
Click the Upload box and select up to 10 PDFs from your computer. Each PDF must be under 10 MB, and the total upload size must be under 200 MB. Only PDFs are supported at this stage.
Test in the Playground
Go to the Playground tab and chat with the Knowledge Base to verify that it answers questions correctly using your uploaded documents.
Add the Knowledge Base element to your flow
Create a Save User Input element
Add a Save User Input element and set the Save to Attribute field to a variable name such as
UserQuery. This captures the user’s question.Drag the output to create a Knowledge Base element
Drag the blue output circle from the Save User Input element onto the canvas and release it. Select Knowledge Base from the context menu. Choose whether to create the element with UI (uses the predefined Knowledge Base screen design) or without UI (you build your own response display).
Select the Knowledge Base
Click the Knowledge Base element and, in the sidebar, select the Knowledge Base you created from the dropdown list.
Robots (Pepper / Temi)
For physical robots, download the Knowledge Base template project from the Downloads section in Plural, then:- Create a Knowledge Base as described above.
- Open the downloaded template and select your Knowledge Base in the KB-Element.
- Copy the Live URL and Auth Token from the Knowledge Base IoT Trigger element and paste them into the Custom API Call element on the robot side.
- Assign the project to your robot, publish, and test.
AI models and GO consumption
Plural offers two model tiers for the Knowledge Base element:- Standard (GPT-3.5)
The Standard model uses GPT-3.5 Turbo and is suitable for most FAQ and information-retrieval use cases.Cost: 10 GOs per 1,000 characters of response generated.
Manage your data source
From inside the Knowledge Base settings, click Manage Data Source to:- View — click a document name to preview it.
- Delete — click the trash icon next to a document to remove it.
- Add — click Add New Data Source to upload additional PDFs.
Analytics and conversation history
The Knowledge Base includes a built-in analytics and conversation history view. Use it to review the questions your users ask and the answers the model provided, then improve your data source documents to increase answer quality.Multilingual automation
If you run the Knowledge Base inside a Plural Automation frame and need it to respond in the user’s current language, append?lang=#ATTRI/LanguageISO2 to the IoT Trigger URL in the API call from your Avatar frame. This passes the current project language to the automation frame automatically.