Skip to content

AFauzulh/simple-ecommerce-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set up environment

Pre-requisites :

  1. Create virtual environment (I'm using venv)
  2. Run pip install -r requirements.txt
  3. Download and install Ollama

Ollama After installing, open Ollama and run command ollama run llama3.2 on your terminal to download the pretrained LLM model. In this project, I'm using llama3.2-3B because it's lightweight and has good performance.

Deployment

I'm using Streamlit and Docker to deploy the chatbot.

Step 1 : Build Docker Image

  docker build -t ecommerce-chatbot-app .

Step 2 : Run Docker Container

  docker run -d --restart always --gpus all --name ecommerce-chatbot-app -p 8501:8501 ecommerce-chatbot-app

To stop and delete the container run

  docker stop ecommerce-chatbot-app && docker rm ecommerce-chatbot-app

Chatbot Overview

Example of Questions alt text

alt text

Retrieved data from API

alt text

About

Simple ecommerce product catalogue chatbot using Ollama, LangChain, Streamlit and DummyJSON Product API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors