Module 5: Hands-on Lab: Training a Support Agent
This hands-on lab will guide you through the process of preparing and uploading a knowledge base to train a support agent. We will use the concepts from the previous modules to create a well-structured and effective knowledge base.
Objective: To prepare a set of documents, consolidate them, and upload them to an agent's knowledge base.
Materials:
A set of sample support documents (provided)
Access to raia Academy
The support agent you created in the previous lab
Step 1: Analyze the Source Documents
Review the provided sample documents. You will find a collection of small text files, each containing a single FAQ.
Notice that having many small files is not ideal for knowledge management.
Step 2: Consolidate the Documents
We will consolidate these small files into a single, well-structured markdown file.
Create a new file named
consolidated_support_faq.md
.Copy the content from each individual FAQ file into the consolidated file. Use markdown headings to separate the questions.
Step 3: Use raia Academy to Clean the Document (Optional)
For this lab, our consolidated file is already in clean markdown. However, if you were working with a .docx or .pdf file, you would use raia Academy to convert it.
Familiarize yourself with the raia Academy interface by uploading the
consolidated_support_faq.md
file and observing how it is processed.
Step 4: Upload the Consolidated File to Your Agent
Go to the raiaAI Launch Pad and open the support agent you created in the previous lab.
Navigate to the "Training" tab.
If you have the old
training_faq.md
file in your knowledge base, remove it.Upload the new
consolidated_support_faq.md
file.
Step 5: Update Your Instructions
Navigate to the "Instructions" tab.
Update the "Knowledge Sources and Routing" section to reference the new file name.
Step 6: Test the Agent
Go to the "Test" tab and ask the same questions you asked in the previous lab.
Verify that the agent is still providing accurate answers, but now it should be citing the new, consolidated file.
This lab has demonstrated the importance of good knowledge management. By consolidating small files into a single, well-organized document, you have made the knowledge base easier to manage and maintain, which is a critical skill for building scalable AI solutions.
Last updated