This is a simple chatbot application built using the LLama3 model from OpenAI. The chatbot is deployed using Flask and can be accessed via a web interface.
- Uses the LLama3 model from Langchain for natural language processing.
- Utilizes dotenv for managing environment variables.
- Implements a ChatPromptTemplate for defining user and system messages.
- Supports querying the chatbot with user input.
- Web-based interface for easy interaction.
- Uses Bootstrap for styling.
- You have to install Ollama in your system.
- After installing the Ollama you have to install llama3 by using this command
-
Clone the repository:
git clone https://github.com/rajveersinghcse/Llama3-Chatbot.git
-
Navigate to the project directory:
cd llama3-chatbot
-
Install the required dependencies:
pip install -r requirements.txt
-
In
.env
file paste your Langchain API key. -
Run this command:
flask --app app.py run
-
Open your browser and go to
http://localhost:5000
to access the chatbot.
- Enter your query in the input field and click "Submit."
- The chatbot will process your query and respond.
You can customize the chatbot's behavior by modifying the initialize_chatbot()
function in app.py
. For example, you can change the prompts or adjust the LLama3 model settings.
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for providing the LLama3 model.
- Bootstrap for the frontend styling.