GithubHelp home page GithubHelp logo

vaibhavpatil123 / demo-chatbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dbeaudway/demo-chatbot

0.0 0.0 0.0 222 KB

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

JavaScript 68.35% Python 14.05% CSS 17.60%

demo-chatbot's Introduction

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

demo-chatbot's People

Contributors

dbeaudway avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.