unstructured icon indicating copy to clipboard operation
unstructured copied to clipboard

add read and combine json

Open preemware opened this issue 11 months ago • 4 comments

For review.

preemware avatar Mar 25 '24 14:03 preemware

read_and_combine_json function is used in the "Multi-files API Processing" example in the documentation

ron-unstructured avatar Mar 25 '24 16:03 ron-unstructured

I made a mistake. I believe the intent of the function was to return as a Iterable[dict[str, Any]]. I can make this change.

preemware avatar Mar 25 '24 16:03 preemware

Referencing the original documentation. The intent appears to have it return as Iterable[dict[str, Any]] into dict_to_elements. If it returned as just a list, the code might not work as intended.

combined_json_data = read_and_combine_json("Connector-Output/world-development-bank-2023")
elements = dict_to_elements(combined_json_data)
chunks = chunk_by_title(elements)

preemware avatar Mar 25 '24 17:03 preemware

@preemware - Are you still working on this?

MthwRobinson avatar May 16 '24 15:05 MthwRobinson