GithubHelp home page GithubHelp logo

pdfchat's Introduction

ChatWithPDF ๐Ÿ“„๐Ÿš€

Chat with one or multiple pdf files using any of OpenAI models! 12 times cheaper than using python and Streamlit ๐Ÿ‘€

Demo ๐Ÿ‘€

Chat.With.PDF.Demo.mp4

Tweet ๐Ÿ”

https://twitter.com/C_Agger_/status/1696797024652288309?s=20

Set it up ๐Ÿคฏ

1. Clone the repository

git clone https://github.com/Christofferagger/CWP.git

2. Rename the .env.example file by running the following command in the terminal

mv .env.example .env

3. Insert your OpenAI API key in the re-named .env file

Replace "Your-OpenAI-Key-Here" with your API key in the new .env file

3. Navigate to the server folder in the terminal

cd server

4. Install all required Node.js packages

npm install

5. Start your local server by running the following command in the terminal

node server.js

6. Navigate to the client folder in the terminal

cd ..
cd client

7. Run the react app

npm start

Bam you got it!

Switch OpenAI model ๐Ÿค–

If you want to use another OpenAI model, head to server.js in the server folder. Then find the modelName property in the model variable. Here you can change your model to whatever you prefer! Here is the code you should look for.

const model = new ChatOpenAI({ 
            modelName: "gpt-3.5-turbo-16k",
            ...

Let's connect ๐Ÿค˜

I need friends - Catch me on Twitter c_Agger_

pdfchat's People

Contributors

christofferagger avatar restorationadvisorsgroup avatar

Watchers

 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.