8000 GitHub - gbaeke/pdfchat: Chat with a PDF file
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gbaeke/pdfchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Chat

Chat with a PDF file using Azure OpenAI and Langchain. Requires Python. Install Python dependencies with pip install -r requirements.txt

If you do not have an OpenAI account, go to https://platform.openai.com. You need an account for both the embeddings and the calls to the chat model (gpt-3.5-turbo).

Add an .env file to the same folder that contains Query.py with following contents:

OPENAI_API_KEY=YOUR_OPENAI_KEY

Create an uploads folder in the same folder that contains Query.py.

To run, use streamlit run Query.py. A brower window should open with the app. Upload a PDF and start asking questions.

Notes:

  • uses in memory FAISS database as a vector store and only tested with a smaller PDFs (around 10MB)
  • max upload size in 200MB
  • you can only query one PDF at a time in this version
  • because embeddings are not saved, when you restart the app or clear the Streamlit cache, they have to be recreated which means $ 😃

About

Chat with a PDF file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0