Llama 2 AI Chatbot is a conversational AI powered by Meta's Llama 2 model, integrated with LangChain and Streamlit. This chatbot allows users to interact with the model in real time via a web interface.
- Uses Llama 2 (7B) model for natural language processing.
- Integrated with LangChain for seamless prompt engineering.
- Streamlit web UI for user-friendly interaction.
- Deployed using ngrok for external access.
git clone https://github.com/yourusername/llama2-chatbot.git
cd llama2-chatbotpip install langchain openai llama-cpp-python streamlit streamlit_chat langchain_community pyngrokDownload the Llama 2 7B GGUF model file:
wget -O llama-2-7b.gguf https://huggingface.co/TheBloke/Llama-2-7B-GGUF/resolve/main/llama-2-7b.Q4_K_M.ggufstreamlit run app.py- Authenticate ngrok (replace with your token):
ngrok authtoken YOUR_NGROK_AUTH_TOKEN
- Start ngrok tunnel:
ngrok http 8501
- Copy the public URL provided by ngrok and open it in a browser.
