https://github.com/cutupdev/pdf-asking-openai
This is pdf upload-ask-answer project using openai, streamlit.
https://github.com/cutupdev/pdf-asking-openai
embeddings openai python
Last synced: about 1 year ago
JSON representation
This is pdf upload-ask-answer project using openai, streamlit.
- Host: GitHub
- URL: https://github.com/cutupdev/pdf-asking-openai
- Owner: cutupdev
- Created: 2024-02-16T18:28:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-16T18:41:42.000Z (about 2 years ago)
- Last Synced: 2025-01-21T19:22:34.189Z (over 1 year ago)
- Topics: embeddings, openai, python
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChatPDF
Chat with any PDF.
Easily upload the PDF documents you'd like to chat with. Instant answers. Ask questions, extract information, and summarize documents with AI. Sources included.
Create app like [ChatPDF](https://www.chatpdf.com/) or [PDF.ai](https://pdf.ai/) in less than 10 lines of code
### Getting Started
Code is up now, ⭐ (Star) the repo to receive updates
Replit and streamlit version coming soon
### How to run ? (Things might change based on OS)
1. Create a virtual environment in python https://docs.python.org/3/library/venv.html
2. Run "pip install -r requirements.txt"
3. Set OPENAI_API_KEY environment variable with your openai key
4. Run "python main.py"
5. Change pdf file and query in code if you want to try with any other content
To run streamlit app, follow the steps run "streamlit run streamlitui.py"
Parts of the streamlit code is inspired from [here](https://github.com/catlover75926/pdf-asking-openai)