Incorporate new LTA-related information (September 2021 and beyond) into an OpenAI GPT model.
Sample question: How do I view my digital vocational licence?
Without the latest LTA information: wrong answer...
With the latest LTA information: correct answer!
Operating System: macOS Ventura 13.3 / Ubuntu 22.04
Programming Language: Python 3.10
Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate
Run the following commands to set up the environment:
pip install -r requirements.txt
pre-commit install
Create a .env
file with the following content:
OPENAI_API_KEY=your_api_key
Start a chat session to enquire about latest LTA information:
python main.py
Start a chat session without the latest LTA information:
python main.py --nolta