GithubHelp home page GithubHelp logo

mejaz / paperbot Goto Github PK

View Code? Open in Web Editor NEW
24.0 1.0 4.0 962 KB

Upload a PDF and just start asking questions from the PDF. It uses OpenAI's embedding model, chat completion model and pinecone vector database

JavaScript 99.73% CSS 0.27%

paperbot's Introduction

PaperBot

demo

Upload any pdf file and ask questions from that pdf.

PaperBot generates embeddings from OpenAI embedding model and stores them in Pinecone Vector database. To answer user's questions, PaperBot does a semantic search on Pinecone Vector database and further refines the result with OpenAI completion model.

Pre-requisites to run this project

  1. OpenAI API Key
  2. Pinecone Database ENV and KEY
  3. MongoDB cluster username and password
  4. AWS S3 bucket, access key and access id

Steps to run this project

  1. Clone the repo
  2. Run npm install to install all the dependencies
  3. Create a .env.local from env-example file: cp env-example .env.local
  4. Update the OpenAI, Pinecone keys, MongoDB creds and AWS S3 bucket and creds in the .env.local file
  5. Run npm run dev to start the project

Tech stack

  • NextJS
  • TailwindCSS
  • MongoDB
  • Pinecone (Vector DB)
  • OpenAI Models - Embedding and Completion

Contact

[email protected]

paperbot's People

Stargazers

Jainil Patel avatar kannan2024 avatar  avatar Jesse Nesh avatar Arpita Patil avatar Muhammad Irfan Zahran avatar Rajendra Bisoi avatar  avatar MOHAMMED NAFIH YUSEPH avatar Nguyễn Thành Dương avatar CH Varun avatar Aymen avatar Amir reza Asadi avatar Thiago Bucca avatar robby avatar charles@prismvu.com avatar Parimala Katasani avatar Eileen Wang avatar Athul Nambiar avatar Jose avatar Nguyen Huong Diu avatar Alican Torun avatar  avatar Mohd Ejaz Siddiqui avatar

Watchers

Mohd Ejaz Siddiqui avatar

paperbot's Issues

error from myfiles.js

components\MyFiles.js (9:10) @ map

7 | <div className={"bg-[#108dc7] text-primary-contrastText p-1 px-3"}>My Files
8 | {

9 | files.map((file, index) => (
| ^
10 | <button
11 | key={index}
12 | type="button"

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.