GithubHelp home page GithubHelp logo

mparje / pdfchat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotvignesh/pdfchat

0.0 0.0 0.0 6.77 MB

The PDFChat app allows you to chat with your PDF files in natural language.

Python 100.00%

pdfchat's Introduction

PDFChat

The PDFChat app allows you to chat with your PDF files using the power of langchain, OpenAI Embeddings, and GPT3.5 in the backend. It uses Streamlit for the user interface.

Demo

Demo.mp4

Installation

To install and run the application, follow the instructions below:

  1. Clone the repository using Git:

    git clone https://github.com/dotvignesh/PDFChat.git
  2. Change into the repository directory:

    cd PDFChat
  3. Create a conda environment:

    conda create --name pdfchat
  4. Activate the new conda environment:

    conda activate pdfchat
  5. Install the required packages:

    pip install -r requirements.txt
  6. Get your OpenAI API Key by following these steps:

    • Go to OpenAI Website
    • Create an account or log in
    • Navigate to the "API Keys" section
    • Click on the "Create new secret key" button (or use an existing one)
    • Copy the API key
  7. Create a .env file in the root of the repository directory, and add the following line, replacing <your-api-key> with your actual API key:

    OPENAI_API_KEY=<your-api-key>
  8. Run the application using streamlit:

    streamlit run app.py

The application should now be running at http://localhost:8501.

Usage

Once the app is running, you can upload your PDF files and start chatting with them using the built-in chat interface.

Enjoy chatting with your PDF files!

pdfchat's People

Contributors

mparje avatar dotvignesh 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.