Skip to content

Demo chatbot implementing augmented retrieval generation with OpenAI, Langchain, Pinecone, and NextJS

Notifications You must be signed in to change notification settings

dbeaudway/demo-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Demo Chatbot

This application demonstrates how to use OpenAI, Langchain, Pinecone, and NextJS to build a chatbot that can answer questions on your own documents based on augmented retrieval generation.

Setup

  1. Create an OpenAI account https://openai.com/
  2. Create a free Pinecone database at https://www.pinecone.io/
  3. Add a .env file to both ingestion/ and chatbot/ directories with the following values from OpenAI and Pinecone
OPENAI_API_KEY=""
PINECONE_API_KEY=""
PINECONE_ENVIRONMENT=""
PINECONE_INDEX_NAME=""
  1. Add files to ingestion/files/* that will be loaded into the Pinecone database. Then run cd ingestion && python app.py to load them into your index
  2. Run npm install && npm run dev in the chatbot/ directory and visit localhost:3000

Chatbot Image

About

Demo chatbot implementing augmented retrieval generation with OpenAI, Langchain, Pinecone, and NextJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published