GithubHelp home page GithubHelp logo

react-declarative / chatgpt-ecommerce-prompt Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 807 KB

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

Home Page: https://github.com/react-declarative/react-declarative

JavaScript 16.22% HTML 3.85% TypeScript 78.42% Shell 0.98% Dockerfile 0.54%
ai chatgpt chromadb database gpt-4 gpt4all lead openai product sales ml

chatgpt-ecommerce-prompt's Introduction

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

chatgpt-ecommerce-prompt's People

Contributors

tripolskypetr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.