https://github.com/dimipash/llama3.1_flask_chatbot
Llama3.1 Flask Chatbot
https://github.com/dimipash/llama3.1_flask_chatbot
chatbot flask llama3
Last synced: about 1 year ago
JSON representation
Llama3.1 Flask Chatbot
- Host: GitHub
- URL: https://github.com/dimipash/llama3.1_flask_chatbot
- Owner: dimipash
- Created: 2024-08-21T02:45:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-21T07:00:54.000Z (almost 2 years ago)
- Last Synced: 2025-06-10T03:07:56.532Z (about 1 year ago)
- Topics: chatbot, flask, llama3
- Language: CSS
- Homepage:
- Size: 854 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Chatbot App
- This is a simple chatbot app built using Flask and the LangChain library. The app allows users to interact with a chatbot that uses the Llama 3.1 language model, running locally using Ollama, to respond to user queries.
### Features
- Users can input queries in a text box on the home page
- The chatbot responds to user queries using the Llama 3.1 language model locally.
- The chatbot's responses are formatted using Markdown bold syntax and converted to HTML strong tags
- The app logs errors and exceptions to the console
### Getting Started
- Clone this repository to your local machine
- Install the required dependencies by running pip install -r requirements.txt
- Run the app by executing python app.py
- Open a web browser and navigate to http://localhost:5000 to access the chatbot
### Configuration
- The LLaMA 3.1 language model is used by default. You can change this by modifying the model parameter in the initialise_llama3_1 function.
- The chatbot's prompt is defined in the create_prompt function. You can modify this to change the chatbot's behavior.
