You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

# 官网
https://github.com/HKUDS/RAG-Anything
# 创建虚拟环境
conda create -n raganything python=3.10
# 激活虚拟环境
conda activate raganything
# 下一步需要测试的库
https://github.com/HKUDS/VideoRAG
# 添加到PATH
C:\Program Files\LibreOffice\program
# Office document parsing test (MinerU only)
python examples/office_document_test.py --file path/to/document.docx
# Check LibreOffice installation
python examples/office_document_test.py --check-libreoffice --file dummy
# End-to-end processing
python examples/raganything_example.py path/to/document.pdf --api-key YOUR_API_KEY
# Direct modal processing
python examples/modalprocessors_example.py --api-key YOUR_API_KEY
# Image format parsing test (MinerU only)
python examples/image_format_test.py --file path/to/image.bmp
# Text format parsing test (MinerU only)
python examples/text_format_test.py --file path/to/document.md
# Check PIL/Pillow installation
python examples/image_format_test.py --check-pillow --file dummy
# Check ReportLab installation
python examples/text_format_test.py --check-reportlab --file dummy
# MinerU
https://github.com/opendatalab/MinerU/blob/master/README_zh-CN.md