This app is an interface to OpenAI's gpt-3.5-turbo API with its own set of features.
Made changes to the .env requirements. QUERY_URL
and UPSERT_URL
are no longer needed. The app now only needs
PINECONE_URL=yourindexurl
If you have a feature you would like to see implemented, open up a discussion.
git clone the repo:
git clone https://github.com/jas3333/gptchat_pinecone
cd gptchat_pinecone
npm install
- Create a new Index
- Use a P1
- Dimensions: 1536
Make a note of the index location. You should see something like indexname-2342342a.svc.us-east1-gcp.pinecone.io
. You'll need it for the
environments in the .env
An OpenAI API key to access their LLMs. This app uses gpt-3.5-turbo and Ada-002 for embedding. OpenAI Their website is horrible. You'll just have to click around until you can find the signup link....
A MongoDB setup.
Next you'll need to create a .env
file, then add the following:
PORT=5000 # This will change the port the express server uses.
OPEN_AI_KEY=your-openai-key
PINECONE_API=your-pinecone-key
PINECONE_URL=https://indexname-2342342a.svc.us-east1-gcp.pinecone.io # Insert your index location here
MONGODB=mongodb://localhost:27017/memories # Put in your mongodb connection string here
Once the .env is setup it's time to run the app. In the terminal type node server.js
then open a browser and navigate to localhost:5000 or whatever port you
set in the .env
I created a docker image, the repo can be found here Dockerhub Repo with instructions and a docker-compose example.