Skip to content

A Streamlit app featuring a chatbot powered by LLaMA2. Users interact with the chat, customize LLaMA2 models, and view responses generated using the Replicate API. Includes database storage for user input.

Notifications You must be signed in to change notification settings

w453y/llama2-chatbot-db-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦙💬 Llama 2 Chatbot with Database Integration

This chatbot is created using the open-source Llama 2 LLM model from Meta and it saves the user input in the sqlite db.

Getting your own Replicate API token

To use this app, you'll need to get your own Replicate API token.

After signing up to Replicate, you can access your API token from this page.

Replace the API token in .streamlit/secrets.toml

Installation

git clone https://github.com/w453y/llama2-chatbot-db-integration
cd llama2-chatbot-db-integration
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
streamlit run app.py

Installation with Docker

docker build -t chatbot .
docker run -p 8501:8501 -v $(pwd):/app chatbot

Access the saved User_Input from Database

sqlite3 llama_db.db
sqlite> SELECT * FROM user_input;

About

A Streamlit app featuring a chatbot powered by LLaMA2. Users interact with the chat, customize LLaMA2 models, and view responses generated using the Replicate API. Includes database storage for user input.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published