Gustu / chatbot-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pinecone Chatbot Demo

To run this demo, you need to have:

  1. A Pinecone account. If you don't have one, you can sign up for free at pinecone.io.
  2. An OpenAI account. If you don't have one, you can sign up for free at openai.com.
  3. An Ably account. If you don't have one, you can sign up for free at ably.io.
  4. A FingerprintJS account. If you don't have one, you can sign up for free at fingerprintjs.com.
  5. A CockroachDB account. If you don't have one, you can sign up for free at cockroachlabs.com.

Setup

  1. Clone this repository
git clone https://github.com/pinecone-io/chatbot-demo.git
  1. Install dependencies
cd chatbot-demo
npm install
  1. Create your Pinecone, OpenAI, Ably, FingerprintJS and Cockroach accounts and get your API keys

  2. Create your Pinecone index

  3. 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"

Start the development server

npm run dev

About


Languages

Language:TypeScript 98.0%Language:JavaScript 1.0%Language:Shell 0.6%Language:CSS 0.4%