To run this demo, you need to have:
- A Pinecone account. If you don't have one, you can sign up for free at pinecone.io.
- An OpenAI account. If you don't have one, you can sign up for free at openai.com.
- An Ably account. If you don't have one, you can sign up for free at ably.io.
- A FingerprintJS account. If you don't have one, you can sign up for free at fingerprintjs.com.
- A CockroachDB account. If you don't have one, you can sign up for free at cockroachlabs.com.
- Clone this repository
git clone https://github.com/pinecone-io/chatbot-demo.git
- Install dependencies
cd chatbot-demo
npm install
-
Create your Pinecone, OpenAI, Ably, FingerprintJS and Cockroach accounts and get your API keys
-
Create your Pinecone index
-
Create a
.env
file in the root directory of the project and add your API keys:
OPENAI_API_KEY=...
PINECONE_API_KEY=...
PINECONE_ENVIRONMENT=...
PINECONE_INDEX_NAME=...
DATABASE_URL=...
ABLY_API_KEY=...
FINGERPRINTJS_API_KEY=...
API_ROOT="http://localhost:3000"
npm run dev