https://github.com/bes-dev/smart_pdf
Summarize PDF by LLM
https://github.com/bes-dev/smart_pdf
Last synced: 9 months ago
JSON representation
Summarize PDF by LLM
- Host: GitHub
- URL: https://github.com/bes-dev/smart_pdf
- Owner: bes-dev
- License: apache-2.0
- Created: 2023-09-10T19:58:12.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-10T21:40:35.000Z (almost 3 years ago)
- Last Synced: 2025-04-02T01:37:17.507Z (about 1 year ago)
- Language: Python
- Size: 10.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SmartPDF
A simple python library for AI-powered PDF documents processing.
[](https://pepy.tech/project/smart-pdf)
[](https://pepy.tech/project/smart-pdf)
[](https://pepy.tech/project/smart-pdf)
## Requirements
* Linux, Windows, MacOS
* Python 3.8.+
* OpenAI API Key
## Install package
```bash
pip install smart_pdf
```
## Install the latest version
```bash
git clone https://github.com/bes-dev/smart_pdf.git
cd smart_pdf
pip install -r requirements.txt
pip install .
```
## Install the latest version
```bash
git clone https://github.com/bes-dev/random_face.git
cd random_face
pip install -r requirements.txt
python download_model.py
pip install .
```
## Demo
```bash
python -m smart_pdf.smart_pdf --help
```
## Example
```python
from smart_pdf import SmartPDF
smart_doc = SmartPDF(
path=,
openai_api_key=
)
print(smart_doc)
print(f"Summary: {smart_doc.summary()}")
print("Press q! to exit")
while True:
request = input("> ")
if request == "q!":
break
print(smart_doc.smart_search(request))
```