ChatPDF
Load a PDF file and ask questions via llama_index and GPT
Install / Use
/learn @gabacode/ChatPDFREADME
chatPDF
Load a PDF file and ask questions via llama_index and GPT
Instructions
- Install the requirements
pip install -r requirements.txt
-
Get a GPT API key from OpenAI if you don't have one already.
-
Paste your API key in a file called
.envin the root directory of the project.
OPENAI_API_KEY=<your key here>
-
Select a file from the menu or replace the default file
file.pdfwith the PDF you want to use. -
Run the script.
python3 main.py
-
Ask any questions about the content of the PDF.
-
You can find other loaders at Llama Hub.
-
Enjoy!
Related Skills
summarize
334.1kSummarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).
feishu-doc
334.1k|
obsidian
334.1kWork with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
openhue
334.1kControl Philips Hue lights and scenes via the OpenHue CLI.
