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

https://github.com/cyprianfusi/rendering-a-dynamic-ai-chatbot-using-streamlit

OpenAI Large Language Model (LLM) powered Chatbot using Streamlit
https://github.com/cyprianfusi/rendering-a-dynamic-ai-chatbot-using-streamlit

generative-ai large-language-models llm-prompting openai streamlit togetherai

Last synced: 3 months ago
JSON representation

OpenAI Large Language Model (LLM) powered Chatbot using Streamlit

Awesome Lists containing this project

README

          

# Rendering-a-Dynamic-AI-Chatbot-using-Streamlit
## OpenAI Large Language Model (LLM) powered Chatbot using Streamlit

This project involves creating an AI chatbot that can take on different personas, keep track of conversation history, and provide coherent responses.
The Chatbot is then rendered using [Streamlit](https://streamlit.io/).

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 `conversation_manager.py` while the rendering using [Streamlit](https://streamlit.io/) is implemented in `chatbot_using_streamlit.py`

To test the bot from your local machine run `python -m streamlit run .\chatbot_using_streamlit.py` from the command line.