This project demonstrates how pre-programmed chatbot behaviors can be showcased by utilizing the GPT3.5 Turbo model and Chat Completions, as described in the official OpenAI Cookbook.
Furthermore, this project is designed to run seamlessly using Python or Anaconda, with consideration given to VS Code's Python Interactive window.
While this project is coded in Python, the underlying principles can be applied to other programming languages as well.
-
Helpful assistant - A friendly and helpful assistant.
-
Sarcastic Bot - A sarcastic assistant that reluctantly answers questions with sarcastic responses.
-
Noypi - A Friendly assistant from the Philippines that answers question in Filipino.
-
Translator - A friendly and helpful translator.
These four packages have distinct functions and behaviors that can be executed using basic Python/CLI or Anaconda with Jupyter Notebook. See examples_py and examples_ipynb.
The following must be installed in your machine:
-
Python 3.10.8 or later
-
Anaconda (Optional)
You may clone the entire repository by running the following command:
git clone https://github.com/kitimi88/ai-sigbin.git
- Setup virtual environment and activate virtual environment.
py -m venv .venv
.venv\scripts\activate.ps1
- Upgrade PIP
py -m pip install --upgrade pip
- Install dependencies
py -m pip install --upgrade -r requirements.txt
Anaconda must be installed in your local machine. See documentation for initial setup. Once installed you may also follow some tips bellow:
- Confirm installation, run anaconda cmd prompt with the following command:
conda info
- Create environment with Python version. Replace ENV with your desired name.
conda create -n ENVNAME python=3.10
- Update all packages
conda update --all
pip install openai
pip install --upgrade openai
This project is licensed under the MIT License.