https://github.com/cllspy/mistralchatbotupdated
MistralChatBotUpdated is a ChatBot that utilizes Streamlit as the graphical user interface (GUI) and integrates with the Mistral API as its large language model (LLM).
https://github.com/cllspy/mistralchatbotupdated
chatbot mistral streamlit
Last synced: 12 months ago
JSON representation
MistralChatBotUpdated is a ChatBot that utilizes Streamlit as the graphical user interface (GUI) and integrates with the Mistral API as its large language model (LLM).
- Host: GitHub
- URL: https://github.com/cllspy/mistralchatbotupdated
- Owner: CllsPy
- Created: 2024-12-11T23:46:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-13T15:53:55.000Z (over 1 year ago)
- Last Synced: 2025-02-07T19:15:49.435Z (about 1 year ago)
- Topics: chatbot, mistral, streamlit
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MistralChatBotUpdated

**MistralChatBotUpdated** is a ChatBot that utilizes Streamlit as the graphical user interface (GUI) and integrates with the [Mistral API](https://docs.mistral.ai/api/) as its large language model (LLM). While there are several examples available, many rely on outdated versions of the Mistralai library (e.g., version 0.4.2). This project updates the libraries and provides an up-to-date implementation.
### Related Examples
- [Build an AI Chatbot with MistralAI + Streamlit](https://medium.com/bitgrit-data-science-publication/build-an-ai-chatbot-with-mistralai-streamlit-4f58d7fe4a22)
- [How to Build AI ChatBots with Mistral and Llama2](https://www.anaconda.com/blog/how-to-build-ai-chatbots-with-mistral-and-llama2)
## What Is Mistral AI?
[Mistral AI](https://mistral.ai/fr/) is a French company focused on developing open-source models for developers and small businesses. You can think of Mistral AI as an open-source alternative to [OpenAI](https://openai.com/).
## Usage

### Requirements
To use the application, follow these steps:
1. Fork this repository.
2. Obtain your Mistral API key by visiting [Mistral API Documentation](https://docs.mistral.ai/api/).
3. Save the API key in your `.env` file.
4. Navigate to the `src` folder.
5. Install dependencies by running:
```bash
pip install -r packages.txt
```
Once all dependencies are installed, you can start the Streamlit server by running:
```bash
streamlit run mistral_chatbot.py
```
## Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss your proposed modifications.
Make sure to update any tests as needed to reflect your changes.
## License
This project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).