Skip to content

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

License

Notifications You must be signed in to change notification settings

ammarsaf/chat-gpt-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages