-
feat: support pdf link extraction in hi_res strategy (#3753)
发布于
2024-10-31 16:52:27 +00:00 This PR aims to add support for link extraction in pdf
hi_res
strategy. Thepartition_pdf()function now supports link extraction
when using thehi_resstrategy, allowing users to extract hyperlinks
from PDF documents.Summary
- Added functionalities to support link extraction in hi_res flow
- Enhanced word extraction functionality used for link extraction in
bothfastandhi_resflows, resulted in more correctstart_index
andtextinlinksmetadata. - Updated ingest fixture update workflow to not skip Astra DB source
test
Testing
elements = partition_pdf( filename="example-docs/pdf/embedded-link.pdf", strategy="hi_res" ) assert len(elements[0].metadata.links) == 3
Co-authored-by: ryannikolaidis 1208590+ryannikolaidis@users.noreply.github.com
Co-authored-by: christinestraub christinestraub@users.noreply.github.com
Co-authored-by: cragwolfe crag@unstructured.io下载附件