https://github.com/cyprianfusi/developing-a-dynamic-ai-chatbot-in-python
Creating an AI chatbot that can take on different personas, keep track of conversation history, and provide coherent responses.
https://github.com/cyprianfusi/developing-a-dynamic-ai-chatbot-in-python
generative-ai large-language-models llm-prompting oops-in-python openai togetherai
Last synced: about 2 months ago
JSON representation
Creating an AI chatbot that can take on different personas, keep track of conversation history, and provide coherent responses.
- Host: GitHub
- URL: https://github.com/cyprianfusi/developing-a-dynamic-ai-chatbot-in-python
- Owner: CyprianFusi
- Created: 2024-08-21T06:50:32.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-21T06:51:46.000Z (9 months ago)
- Last Synced: 2025-01-26T11:28:31.815Z (4 months ago)
- Topics: generative-ai, large-language-models, llm-prompting, oops-in-python, openai, togetherai
- Language: Jupyter Notebook
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Developing-a-Dynamic-AI-Chatbot-in-Python
Creating an AI chatbot that can take on different personas, keep track of conversation history, and provide coherent responses.This project involves creating an AI chatbot that can take on different personas, keep track of conversation history, and provide coherent responses.
Key skills we'll practice include:
* Using the **OpenAI API** to interact with a large language model.
* Crafting and managing distinct chatbot **personas with system messages**.
* Monitoring and handling **token usage to stay within a token budget**.
* Maintaining a **conversation history to achieve contextually aware interactions**.### Creating the Chatbot Framework
The Chatbot Framework is implementated as a **ConversationManager** class in the module `dynamic_ai_chatbot.py`.