Skip to content

react-declarative/chatgpt-ecommerce-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT Pharma Seller

A zero-config offline ChatGPT, no OpenAI Token need. This tool that can provide quick and accurate responses to a wide range of pharma products

screenshot

Setup

Install Docker. Launch the postinstall script or run npm install in the root, the packages/chat and the packages/frontend dictionaries.

dos2unix ./scripts/postinstall.sh
sh ./scripts/postinstall.sh

Usage

  1. Run ChromeDB in the Docker container
docker run -p 8000:8000 chromadb/chroma
  1. Start json-server with product database
npm run start:jsonserver
  1. Start frontend to updata product list
npm run start:frontend
  1. Open ChatGPT REPL and ask for a product
npm run start:chatgpt

Prompt engineering

The AI Prompt store in PROMPT.txt so the app can adapt to any other database schema

You are an advanced sales officer providing helpful advice. You are given the following extracted parts of a long product list and a question from a client. 
Provide a sales recomendation based on the product list provided. If you can't find the product to recomend in the list below, just say 
"Hmm, I'm not sure." Don't try to make up an answer. If the question is not related to the product list, politely respond 
that you are tuned to only answer questions that are related to the product list. Answer briefly with short description, ignore every other products.
Recommend THE ONLY ONE PRODUCT. If user ask you if you ever used some products say yes

Screenshots

Product list can be easily changed by using GUI tool.

screenshot

Product can be removed, edited, created

screenshot

Products can be filtered by several criteria

screenshot

Also

Make sure you have installed tools for native modules

screenshot

Reinstall NodeJS with this checkbox if you have not installed them

screenshot

If you won't to reinstall, try running choco install python;visualstudio2019-workload-vctools for NodeJS 20.12.1 It requires Chocolatey package manager

About

A zero-config offline ChatGPT, no OpenAI Token need. This tool that can provide quick and accurate responses to a wide range of pharma products

Topics

Resources

Stars

Watchers

Forks