quivr/backend/requirements.txt
Pascal Gula 8bbe6e7054
Adds pytesseract, tesseract and poopler-utils (#1648)
To enable the ingestion of copy protected PDF via OCR instead of text
extraction

# Description

Copy protected PDF can't be properly imported via the standard langchain
loader.

See the following errors:

```
2023-11-15 14:16:31,927 [INFO] models.files: Computing documents from file Cradle to Cradle Criteria for the built environmen.pdf
[nltk_data] Downloading package punkt to
[nltk_data]     /home/pascal_gula_luccid_ai/nltk_data...
[nltk_data]   Unzipping tokenizers/punkt.zip.
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data]     /home/pascal_gula_luccid_ai/nltk_data...
[nltk_data]   Unzipping taggers/averaged_perceptron_tagger.zip.
Error processing file: detectron2 is not installed, pytesseract is not installed and the text of the PDF is not extractable. To process this file, install detectron2, install pytesseract, or remove copy protection from the PDF.
```

```
2023-11-15 15:04:14,624 [INFO] models.files: Computing documents from file Cradle to Cradle Criteria for the built environmen.pdf
Error processing file: Unable to get page count. Is poppler installed and in PATH?
```

```
023-11-15 15:59:11,886 [INFO] models.files: Computing documents from file Cradle to Cradle Criteria for the built environmen.pdf
Error processing file: tesseract is not installed or it's not in your PATH. See README file for more information.
```


## Checklist before requesting a review

Please delete options that are not relevant.

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented hard-to-understand areas
- [x] I have ideally added tests that prove my fix is effective or that
my feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged

## Screenshots (if appropriate):

None

Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
2023-11-22 17:26:11 +01:00

39 lines
584 B
Plaintext

# pymupdf==1.22.3
langchain==0.0.332
litellm==0.13.2
# Markdown==3.4.4
openai==0.27.8
GitPython==3.1.36
pdf2image==1.16.3
pypdf==3.9.0
supabase==1.1.0
tiktoken==0.4.0
unstructured==0.6.7
fastapi==0.95.2
python-multipart==0.0.6
uvicorn==0.22.0
pypandoc==1.11
docx2txt==0.8
python-jose==3.3.0
asyncpg==0.27.0
flake8==6.0.0
flake8-black==0.3.6
sentry-sdk==1.26.0
pyright==1.1.316
resend==0.5.1
html5lib==1.1
beautifulsoup4
newspaper3k
xlrd==1.0.0
celery==5.2.7
redis==4.5.4
flower
boto3==1.28.46
botocore==1.31.46
celery[sqs]
python-dotenv
pytest-mock
pytest-celery
pytesseract==0.3.10