An open API service indexing awesome lists of open source software.

https://github.com/react-declarative/chatgpt-ecommerce-prompt

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
https://github.com/react-declarative/chatgpt-ecommerce-prompt

ai chatgpt chromadb database gpt-4 gpt4all lead ml openai product sales

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](./docs/screenshot5.png)

## Contribute

> [!IMPORTANT]
> Made by using [react-declarative](https://github.com/react-declarative/react-declarative) to solve your problems. **⭐Star** and **💻Fork** It on github will be appreciated

## Setup

Install [Docker](https://www.docker.com/). Launch the [postinstall](./scripts/postinstall.sh) script or run `npm install` in [the root](./package.json), the [packages/chat](./packages/chat/package.json) and the [packages/frontend](./packages/frontend/package.json) dictionaries.

```bash
dos2unix ./scripts/postinstall.sh
sh ./scripts/postinstall.sh
```

## Usage

1. Run ChromeDB in the Docker container

```bash
docker run -p 8000:8000 chromadb/chroma
```

2. Start [json-server](https://github.com/typicode/lowdb) with product database

```bash
npm run start:jsonserver
```

3. Start [frontend](https://github.com/react-declarative/react-declarative) to updata product list

```bash
npm run start:frontend
```

4. Open ChatGPT [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) and ask for a product

```bash
npm run start:chatgpt
```

## Prompt engineering

> The AI Prompt store in [PROMPT.txt](./PROMPT.txt) so the app can adapt to any other database schema

```html
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](./docs/screenshot2.png)

> Product can be removed, edited, created

![screenshot](./docs/screenshot4.png)

> Products can be filtered by several criteria

![screenshot](./docs/screenshot3.png)

## Also

Make sure you have installed [tools for native modules](https://www.npmjs.com/package/windows-build-tools)

![screenshot](./docs/screenshot7.png)

Reinstall NodeJS with this checkbox if you have not installed them

![screenshot](./docs/screenshot6.png)

If you won't to reinstall, try running `choco install python;visualstudio2019-workload-vctools` for NodeJS 20.12.1
It requires [Chocolatey](https://chocolatey.org/) package manager