CarloBot is a Personal Assistant for Carlo that uses Generative AI.
https://www.linkedin.com/in/carloappugliese/
https://www.youtube.com/@GenAI4Biz
Follow these steps to set up your personal assistant:
-
Organize Your Data: Copy all your data into the designated
data
folder. Ensure files are in either.txt
or.pdf
format. -
Configuration: Create a
.env
file in the root directory and populate it with the following information:WATSONX_APIKEY=<your-watsonx-api-key> PROJECT_ID=<watsonx-project-id> IBM_CLOUD_URL=https://us-south.ml.cloud.ibm.com USERNAME=<username-for-admin-access> PASSWORD=<password-for-admin-access> BOTNAME=<name-of-the-assistant> FULLNAME=<name-of-person-whom-the-bot-is-representing>
-
Set Up Python Virtual Environment: Create a Python virtual environment using the command:
python -m venv personal_bot
-
Activate Virtual Environment: Depending on your operating system, activate the virtual environment:
- Windows:
personal_bot\Scripts\activate
- Linux and macOS:
source personal_bot/bin/activate
- Windows:
-
Install Dependencies: Install all required dependencies using:
pip install -r requirements.txt
-
Change Assistant Image: Update the current
static/bot.png
image to reflect your preferred picture for the assistant. Ensure that your chosen image is in PNG format and namedbot.png
for seamless integration. -
Change Default Questions: Update the current
default_questions.txt
file with the questions that you want to display on the UI. -
Start the Application: Launch the application with:
python app.py
Your personal assistant is now ready to use! Access it through http://127.0.0.1:5001.
Admin users can access additional functionalities via http://127.0.0.1:5001/add_to_kb to enrich the knowledge base.