Instructions
- Before the README sections 'Setup' and 'Usage' are completed, you must first download two files from the shared CEN Google Drive: the FAQ and Other.txt
- Optionally, adding links to these files in the config file will streamline direct access in the future
- Additionally, the UI features several status indicators for identifying common issues
FAQ - Enter Here.csv
This file contains a list of topics/people and common questions that may be asked about it/them
Retrieval
- This file is from the Google Sheet named 'FAQ' in
CEN/AI/Chatbot/ - Open the Sheet, then download the tab named 'Enter Here' as a
.csvfile (Comma Separated Values)
Format
- Each Person/Entity can span multiple rows of questions
- Each Person/Entity is split by an empty row
-
Example
Person/Entity Questions CEN What is CEN? Rob Thomas Smooth? Instructional How do I teach?
Other.txt
This file contains a list of our teams, employees and their roles, phrases to find and substitutes to replace them with (in the LLM-generated output), and answers for each of the CEN/Team questions
Retrieval
- Download the text file named
Other.txtinCEN/AI/Chatbot/
Format
- Each section is separated by a newline
- The second section requires that each entry contains parts 1-3, separated by a colon (like
part 1:part 2:part 3) - The third and fourth sections require that each entry contains parts 1-2, separated by a colon (like
part 1:part 2) - Do not use unnecessary quotes or spaces
- Each section accepts 1+ entries
-
Example
Team Name Employee Name:Employee Title:Employee Pronoun Phrase to replace:Phrase to replace it with Phrase before 'CEN' or 'Collegiate Edu-Nation':Phrase after 'CEN' or 'Collegiate Edu-Nation' Answer to Team Question
Update
Since this file contains employee info, it will need to be manually kept in sync with our current employees, roles, and teams. As long as the current version is always in CEN/AI/Chatbot/, we can be sure there are at least two copies of this file at all times (with the other being on the Chatbot maintainer's local computer)
The recommended process for updating this file is to
- Unlock the previous
Other.txt - Rename it to
Other.txt.backup - Upload the updated
Other.txt - Lock the updated file
- Delete
Other.txt.backuponce you're certain the new file is correct
Permutated.csv
This file is the output of successfully running Generate on the above files
Retrieval and Usage
- This file will be stored locally in
~/.chatbot-util/ - Log in to Google Cloud Console and navigate to the
Chatbotproject - Click the hamburger menu on the top left and navigate to
Cloud Storage/Buckets/cen-chatbot-docs-062524/FAQ/ - Once there, upload
Permutated.csv, making sure to select the 'Overwrite object' option
This updated the FAQ in the bucket referenced by the agent's data store, but it didn't actually update the data store itself. This will also need to be updated for the changes to propagate to the agent
- Search for 'AI Applications'
- Once there, press 'view' under 'Connected data stores' for the CEN Chatbot app
- Press on 'faq-7.2', then select this file after clicking '+ IMPORT DATA' and selecting the 'Full' option
The changes should propagate after a short period of time (~15 minutes)
Format
- Each row contains exactly one question and answer, which are comma-separated
-
Every question and answer must be enclosed in quotes
"question","answer" "What is CEN?","CEN is a non-profit organization engaging whole communities to reinvigorate education, revitalize local economies, and reimagine what's possible for rural America. We're preparing rural communities to connect and thrive in a fast-moving future."
config.toml
This basic (and optional) TOML configuration file contains links to FAQ - Enter Here.csv and Other.txt that enables convenient access via buttons in the Generate card on the UI
Format
- The first row is an indicator for the
[links]section -
The second and third rows contain direct links (enclosed in quotes) to the
faqandotherfiles[links] faq = "https://docs.google.com/spreadsheets/d/identifier/edit?usp=drive_link" other = "https://drive.google.com/file/d/identifier/view?usp=drive_link"
Update
If the direct links to the files change (which happens often with Other.txt), simply update the links in this file. Any changes will be automatically reflected on the UI within a short period of time
Status Indicators
The Overall Status gives an overview of whether you can/should proceed with generation, with additional indicators in its' associated popover providing insight into specific issues
Overall Status (Check Icon)
| Color | Meaning |
|---|---|
| ● | All systems are operational, so generation may proceed |
| ● | Verified Status is red, but all systems are operational, so generation may proceed with caution |
| ● | The Ollama Status and/or the Folder Status are red, so generation cannot proceed |
Ollama Status (Brain Icon)
| Color | Meaning |
|---|---|
| ● | Ollama and mistral are installed on your device |
| ● | Ollama and/or mistral are NOT installed on your device. See the README |
Folder Status (Folder Icon)
| Color | Meaning |
|---|---|
| ● | The FAQ and Other.txt are present in ~/.chatbot-util/ |
| ● | The FAQ and/or Other.txt are missing from ~/.chatbot-util/ |
Verified Status (File Icon)
| Color | Meaning |
|---|---|
| ● | No entries are modified or missing in the newly generated Permutated.csv |
| ● | No new files have been generated in this session |
| ● | Some entries are modified and/or missing in the newly generated Permutated.csv. You should review before generating as this will overwrite Permutated.csv.backup, potentially resulting in data loss. Clicking Okay on the associated toast will reset this status indicator, which can be retriggered at any time by clicking this icon |