An open API service indexing awesome lists of open source software.

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.

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`.