Unstructured-IO / unstructured-api

Apache License 2.0
528 stars 110 forks source link

fix: drop detection_class_prob from element metadata #243

Closed awalker4 closed 1 year ago

awalker4 commented 1 year ago

This field was added to the metadata in unstructured==0.10.13, and it was deployed to the hosted api last week. When users called partition_via_api with older versions of the library, they saw an error related to parsing the new schema. We should fix backwards compatibility in the library, but in the meantime let's drop the new field; it's not super relevant to the end user.

Closes #237

Jimchoo91 commented 1 year ago

As someone who encountered this issue, would upgrading my installation of unstructured resolve this now? Thank you

awalker4 commented 1 year ago

We rolled back the hosted api to prevent the error, so you should be good to try again now. But yes, updating the unstructured library will also fix any differences in the schema.

Jimchoo91 commented 1 year ago

Thanks. I am using the UnstructuredAPIFileLoader from LangChain. Would I need to updated LangChain to see these fixes reflect too?