Releases: Unstructured-IO/unstructured
Releases · Unstructured-IO/unstructured
0.14.9
0.14.9
Enhancements
- Added visualization and OD model result dump for PDF In PDF
hi_resstrategy theanalysisparameter can be used to visualize the result of the OD model and dump the result to a file. Additionally, the visualization of bounding boxes of each layout source is rendered and saved for each page. partition_docx()distinguishes "file not found" from "not a ZIP archive" error.partition_docx()now provides different error messages for "file not found" and "file is not a ZIP archive (and therefore not a DOCX file)". This aids diagnosis since these two conditions generally point in different directions as to the cause and fix.
Features
Fixes
- Fix a bug where multiple
sofficeprocesses could be attempted Add a wait mechanism inconvert_office_docso that the function first checks if anothersofficeis running already: if yes wait till the other process finishes or till the wait timeout before spawning a subprocess to runsoffice partition()now forwardsstrategyarg topartition_docx(),partition_pptx(), and their brokering partitioners for DOC, ODT, and PPT formats. Astrategyargument passed topartition()(or the default value "auto" assigned bypartition()) is now forwarded topartition_docx(),partition_pptx(), and their brokering partitioners when those filetypes are detected.
0.14.8
0.14.8
Enhancements
- Move arm64 image to wolfi-base The
arm64image now runs onwolfi-base. Thearm64build forwolfi-basedoes not yet includelibreoffce, and soarm64does not currently support processing.doc,.ppt, or.xlsfile. If you need to process those files onarm64, use the legacyrockylinuximage.
Features
Fixes
-
Bump unstructured-inference==0.7.36 Fix
ValueErrorwhen converting cells to html. -
partition()now forwardsstrategyarg topartition_docx(),partition_ppt(), andpartition_pptx(). Astrategyargument passed topartition()(or the default value "auto" assigned bypartition()) is now forwarded topartition_docx(),partition_ppt(), andpartition_pptx()when those filetypes are detected. -
Fix missing sensitive field markers for embedders
0.14.7
0.14.7
Enhancements
- Pull from
wolfi-baseimage. The amd64 image now pulls from theunstructuredwolfi-baseimage to avoid duplication of dependency setup steps. - Fix windows temp file. Make the creation of a temp file in unstructured/partition/pdf_image/ocr.py windows compatible.
Features
- Expose conversion functions for tables Adds public functions to convert tables from HTML to the Deckerd format and back
Fixes
- Fix an error publishing docker images. Update user in docker-smoke-test to reflect changes made by the amd64 image pull from the "unstructured" "wolfi-base" image.
- **Fix a IndexError when partitioning a pdf with values for both
extract_image_block_typesandstarting_page_number.
0.14.6
0.14.6
Enhancements
- Bump unstructured-inference==0.7.35 Fix syntax for generated HTML tables.
Features
- tqdm ingest support add optional flag to ingest flow to print out progress bar of each step in the process.
Fixes
- Remove deprecated
overwrite_schemakwarg from Delta Table connector.. Theoverwrite_schemakwarg is deprecated indeltalake>=0.18.0.schema_mode=should be used now instead.schema_mode="overwrite"is equivalent tooverwrite_schema=Trueandschema_mode="merge"is equivalent tooverwrite_schema="False".schema_modedefaults toNone. You can also now specifyengine, which defaults to"pyarrow". You need to specifyenginer="rust"to use"schema_mode". - Fix passing parameters to python-client - Remove parsing list arguments to strings in passing arguments to python-client in Ingest workflow and
partition_via_api - table metric bug fix get_element_level_alignment()now will find all the matched indices in predicted table data instead of only returning the first match in the case of multiple matches for the same gt string.
- fsspec connector path/permissions bug V2 fsspec connectors were failing when defined relative filepaths had leading slash. This strips that slash to guarantee the relative path never has it.
- Dropbox connector internal file path bugs Dropbox source connector currently raises exceptions when indexing files due to two issues: a path formatting idiosyncrasy of the Dropbox library and a divergence in the definition of the Dropbox libraries fs.info method, expecting a 'url' parameter rather than 'path'.
- update table metric evaluation to handle corrected HTML syntax for tables This change is connected to the update in unstructured-inference change - fixes transforming HTML table to deckerd and internal cells format.
0.14.5
0.14.5
Enhancements
- Filtering for tar extraction Adds tar filtering to the compression module for connectors to avoid decompression malicious content in
.tar.gzfiles. This was added to the Pythontarfilelib in Python 3.12. The change only applies when using Python 3.12 and above. - Use
python-oxmsgforpartition_msg(). Outlook MSG emails are now partitioned using thepython-oxmsgpackage which resolves some shortcomings of the prior MSG parser.
Features
Fixes
- 8-bit string Outlook MSG files are parsed.
partition_msg()is now able to parse non-unicode Outlook MSG emails. - Attachments to Outlook MSG files are extracted intact.
partition_msg()is now able to extract attachments without corruption.
0.14.4
Enhancements
- Move logger error to debug level when PDFminer fails to extract text which includes error message for Invalid dictionary construct.
- Add support for Pinecone serverless Adds Pinecone serverless to the connector tests. Pinecone
serverless will work version versions >=0.14.2, but hadn't been tested until now.
Features
- Allow configuration of the Google Vision API endpoint Add an environment variable to select the Google Vision API in the US or the EU.
Fixes
- Address the issue of unrecognized tables in
UnstructuredTableTransformerModelWhen a table is not recognized, theelement.metadata.text_as_htmlattribute is set to an empty string. - Remove root handlers in ingest logger. Removes root handlers in ingest loggers to ensure secrets aren't accidentally exposed in Colab notebooks.
- Fix V2 S3 Destination Connector authentication Fixes bugs with S3 Destination Connector where the connection config was neither registered nor properly deserialized.
- Clarified dependence on particular version of
python-docxPinnedpython-docxversion to ensure a particular methodunstructureduses is included. - Ingest preserves original file extension Ingest V2 introduced a change that dropped the original extension for upgraded connectors. This reverts that change.
0.14.3
Enhancements
- Move
categoryfield from Text class to Element class. partition_docx()now supports pluggable picture sub-partitioners. A subpartitioner that accepts a DOCXParagraphand generates elements is now supported. This allows adding a custom sub-partitioner that extracts images and applies OCR or summarization for the image.- Add VoyageAI embedder Adds VoyageAI embeddings to support embedding via Voyage AI.
Features
Fixes
- Fix
partition_pdf()to keep spaces in the text. The control character\tis now replaced with a space instead of being removed when merging inferred elements with embedded elements. - Turn off XML resolve entities Sets
resolve_entities=Falsefor XML parsing withlxml
to avoid text being dynamically injected into the XML document. - Add backward compatibility for the deprecated pdf_infer_table_structure parameter.
- Add the missing
form_extraction_skip_tablesargument to thepartition_pdf_or_imagecall.
to avoid text being dynamically injected into the XML document. - Chromadb change from Add to Upsert using element_id to make idempotent
- Diable
table_as_cellsoutput by default to reduce overhead in partition; nowtable_as_cellsis only produced when the envEXTACT_TABLE_AS_CELLSistrue - Reduce excessive logging Change per page ocr info level logging into detail level trace logging
- Replace try block in
document_to_element_listfor handling HTMLDocument Usegetattr(element, "type", "")to get thetypeattribute of an element when it exists. This is more explicit way to handle the special case for HTML documents and prevents other types of attribute error from being silenced by the try block
0.14.2
Enhancements
- Bump unstructured-inference==0.7.33.
Features
- Add attribution to the
pineconeconnector.
0.14.1
Enhancements
- Refactor code related to embedded text extraction. The embedded text extraction code is moved from
unstructured-inferencetounstructured.
Features
- Large improvements to the ingest process:
- Support for multiprocessing and async, with limits for both.
- Streamlined to process when mapping CLI invocations to the underlying code
- More granular steps introduced to give better control over process (i.e. dedicated step to uncompress files already in the local filesystem, new optional staging step before upload)
- Use the python client when calling the unstructured api for partitioning or chunking
- Saving the final content is now a dedicated destination connector (local) set as the default if none are provided. Avoids adding new files locally if uploading elsewhere.
- Leverage last modified date when deciding if new files should be downloaded and reprocessed.
- Add attribution to the
pineconeconnector
- Add support for Python 3.12.
unstructurednow works with Python 3.12!
0.14.0
0.14.0
BREAKING CHANGES
- Turn table extraction for PDFs and images off by default. Reverting the default behavior for table extraction to "off" for PDFs and images. A number of users didn't realize we made the change and were impacted by slower processing times due to the extra model call for table extraction.
Enhancements
- Skip unnecessary element sorting in
partition_pdf(). Skip element sorting when determining whether embedded text can be extracted. - Faster evaluation Support for concurrent processing of documents during evaluation
- Add strategy parameter to
partition_docx(). Behavior of future enhancements may be sensitive the partitioning strategy. Add this parameter sopartition_docx()is aware of the requested strategy. - Add GLOBAL_WORKING_DIR and GLOBAL_WORKING_PROCESS_DIR configuration parameteres to control temporary storage.
Features
- Add form extraction basics (document elements and placeholder code in partition). This is to lay the ground work for the future. Form extraction models are not currently available in the library. An attempt to use this functionality will end in a
NotImplementedError.
Fixes
- Add missing starting_page_num param to partition_image
- Make the filename and file params for partition_image and partition_pdf match the other partitioners
- Fix include_slide_notes and include_page_breaks params in partition_ppt
- Re-apply: skip accuracy calculation feature Overwritten by mistake
- Fix type hint for paragraph_grouper param
paragraph_groupercan be set toFalse, but the type hint did not not reflect this previously. - Remove links param from partition_pdf
linksis extracted during partitioning and is not needed as a paramter in partition_pdf. - Improve CSV delimeter detection.
partition_csv()would raise on CSV files with very long lines. - Fix disk-space leak in
partition_doc(). Remove temporary file created but not removed whenfileargument is passed topartition_doc(). - Fix possible
SyntaxErrororSyntaxWarningon regex patterns. Change regex patterns to raw strings to avoid these warnings/errors in Python 3.11+. - Fix disk-space leak in
partition_odt(). Remove temporary file created but not removed whenfileargument is passed topartition_odt(). - AstraDB: option to prevent indexing metadata