GithubHelp home page GithubHelp logo

ammar-azman / chat-gpt-pdf Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 112 KB

Apps to read and reason any PDF files by using LLM model from OpenAI and Huggingface.

License: MIT License

Python 100.00%

chat-gpt-pdf's Introduction

ChatGPT-PDF

Getting Started

Run Apps Locally

  1. To run apps locally, first create virtual environment and activate it.
python3.9 -m venv venv
source venv/bin/activate
  1. Install all requirements with the following command
pip install -r requirements.txt
  1. Initialize Streamlit
python -m streamlit run frontend/main.py

  1. Insert your OpenAI api key within Secret Page in the app.
  2. Upload files, and ask the AI about your file!

LLM Model Secret Key

  1. Please ensure to provide the OPENAI_APIKEY from OpenAI (compulsory):

    • Within ./streamlit/secrets.toml for local. (Note: please ensure to ignore toml file to avoid pushing the secret key!); or
    • Streamlit Secrets on remote.
    # Example
    OPENAI_APIKEY="your-openai-api-key-bro"
  2. To use model from HunggingFace, please provide Huggingface ID and Huggingface Token within the apps (see on sidebar). Try google/flan-t5-xxl with your Huggingface Token. create Hunggingface Token

Prompt Engineering

What can you do with this apps?

I will suggest several examples on how you can utilize the model with particular objective.

Resume/CV files

  • Prompt 1

    Please create an excellent cover letter for the resume with maximum 300 words.
    
  • Prompt 2

    I want to apply for <job> position. Please suggest words improvement for my resume according to the position.
    
  • Prompt 3

    List me out all job that is suitable for me according to my resume. 
    

Research Paper

  • Prompt 1

    Please write an extensive summary based on this research paper.
    
  • Prompt 2 (upload multiple research papers)

    Based on all of the research papers, which paper has the most correlation. State also which part that has highest correlation. 
    
  • Prompt 3

    Based on my research paper, suggest me any improvement that I should do to improve the quality of my research.
    

Invoice

  • Prompt 1
    Summarize the invoice so I can understand it better.
    
  • Prompt 2
    Which invoice has the highest expenditure in 2021?
    

And the rest is based on your creativity!

chat-gpt-pdf's People

Contributors

ammar-azman avatar

Watchers

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