An interactive chatbot leveraging OpenAI's latest GPT-4-turbo model to engage in meaningful conversations. Tailored for civil and structural engineering queries, it provides succinct, professional, and technically precise responses. Each response is conveniently copied to your clipboard, thanks to the pyperclip
library.
This chatbot was developed for my friend Scott, a blind civil engineer who likes to simplify things by working directly in powershell or the CLI. This is a bare bones version of GPT 4-Turbo that streamlines his workflow.
- Contextual Conversations: Maintains a history for coherent and context-aware interactions.
- Clipboard Integration: Automatically copies the AI's response to your clipboard.
- Customizable: Easily adaptable to various professional domains beyond engineering.
Before you start, ensure you have the following:
- An OpenAI API key.
- For more information on setting up your OpenAI API key as a system variable, check out API Quickstart Guide
python-dotenv
for environment variable management.pyperclip
for clipboard functionality.
-
Clone the repository to your local machine.
-
Navigate into the project directory: cd path/to/your/project
-
Install dependencies using Poetry or pip: poetry install
pip install -r requirements.txt
-
Set up your
.env
file at the project root with your OpenAI API key:OPENAI_API_KEY='your_api_key_here
Run the script in your terminal, and interact with the chatbot as you would with a human:
python path/to/your/chatbot_script.py
Type your messages after the prompt You:
and witness the AI crafting responses tailored to civil and structural engineering—or any other domain you configure it for.
To exit, simply type quit
.
Interested in enhancing this project? Your contributions are welcome! Please feel free to fork the repository, make your changes, and submit a pull request.
Distributed under the MIT License. See LICENSE
for more information.
- OpenAI for the GPT-4 Turbo model.
- Python-dotenv for environment variable management.
- Pyperclip for clipboard operations.
Got questions or feedback? Reach out to me at [email protected].