sunholo 0.119.10__py3-none-any.whl → 0.119.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -160,9 +160,8 @@ def read_gdrive_to_document(url: str, metadata: dict = None):
160
160
  return docs
161
161
 
162
162
  def read_url_to_document(url: str, metadata: dict = None):
163
+ from langchain_unstructured import UnstructuredLoader
163
164
 
164
- if not UnstructuredLoader:
165
- raise ImportError("UnstructuredLoader requires 'langchain_unstructured' to be installed")
166
165
  unstructured_kwargs = {"skip_infer_table_types": [],
167
166
  "extract_image_block_types": ["Image", "Table"]
168
167
  }
@@ -179,7 +178,7 @@ def read_url_to_document(url: str, metadata: dict = None):
179
178
  return docs
180
179
 
181
180
  def read_file_to_documents(gs_file: pathlib.Path, metadata: dict = None):
182
-
181
+ from langchain_unstructured import UnstructuredLoader
183
182
  docs = []
184
183
  pdf_path = str(pathlib.Path(gs_file))
185
184
 
@@ -276,7 +275,7 @@ def read_file_to_documents(gs_file: pathlib.Path, metadata: dict = None):
276
275
  return docs
277
276
 
278
277
  def convert_to_txt_and_extract(gs_file, split=False):
279
-
278
+ from langchain_unstructured import UnstructuredLoader
280
279
  if not UnstructuredLoader:
281
280
  raise ImportError("UnstructuredLoader requires 'langchain_unstructured' to be installed")
282
281
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: sunholo
3
- Version: 0.119.10
3
+ Version: 0.119.11
4
4
  Summary: Large Language Model DevOps - a package to help deploy LLMs to the Cloud.
5
5
  Author-email: Holosun ApS <multivac@sunholo.com>
6
6
  License: Apache License, Version 2.0
@@ -95,6 +95,7 @@ Requires-Dist: langchain; extra == "langchain"
95
95
  Requires-Dist: langchain_experimental; extra == "langchain"
96
96
  Requires-Dist: langchain-community; extra == "langchain"
97
97
  Requires-Dist: langsmith; extra == "langchain"
98
+ Requires-Dist: langchain-unstructured; extra == "langchain"
98
99
  Provides-Extra: azure
99
100
  Requires-Dist: azure-identity; extra == "azure"
100
101
  Requires-Dist: azure-storage-blob; extra == "azure"
@@ -35,7 +35,7 @@ sunholo/chunker/azure.py,sha256=MVF9_-QdKUoJqlpEJ49pv2sdjMDxEiMNxzmO7w5nWDQ,3270
35
35
  sunholo/chunker/doc_handling.py,sha256=t_lDazHfJbs4Q2Ruq2MvBBeJRfsjjQkzMxKuX8qQKBI,9087
36
36
  sunholo/chunker/encode_metadata.py,sha256=hxxd9KU35Xi0Z_EL8kt_oD66pKfBLhEjBImC16ew-Eo,1919
37
37
  sunholo/chunker/images.py,sha256=id2PBu6XyGEOtgafq2v0c9_O6kxaC_pYFMnbsIitkSg,1868
38
- sunholo/chunker/loaders.py,sha256=5NXrMxV-WdbFpxeLhFzccw0_zhf1UQ7yKFFeaMkc9Bc,11105
38
+ sunholo/chunker/loaders.py,sha256=KEFPHBr32DPJnRUNjOecLiZKsFD-Gk3BFIKyXSVHgbY,11143
39
39
  sunholo/chunker/message_data.py,sha256=bpb8QWQttqazm5lr7fTFJ5JDwf-P0SQ5cOIf6NikNyI,10836
40
40
  sunholo/chunker/pdfs.py,sha256=xwbuMJrbypcyPXfZ8tiUidWeMr80C2NhfTC1mwa8SHY,2477
41
41
  sunholo/chunker/process_chunker_data.py,sha256=xjOAf1FvHDwQaBm7kgDzLQUnwm6AW8qf4fTrwDnwmtc,3613
@@ -166,9 +166,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
166
166
  sunholo/vertex/memory_tools.py,sha256=tBZxqVZ4InTmdBvLlOYwoSEWu4-kGquc-gxDwZCC4FA,7667
167
167
  sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
168
168
  sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
169
- sunholo-0.119.10.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
170
- sunholo-0.119.10.dist-info/METADATA,sha256=svQpxFiR6l0HgzfJ6Kb5ihFL3_3iv1DYZllOFDjGPwA,9655
171
- sunholo-0.119.10.dist-info/WHEEL,sha256=nn6H5-ilmfVryoAQl3ZQ2l8SH5imPWFpm1A5FgEuFV4,91
172
- sunholo-0.119.10.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
173
- sunholo-0.119.10.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
174
- sunholo-0.119.10.dist-info/RECORD,,
169
+ sunholo-0.119.11.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
170
+ sunholo-0.119.11.dist-info/METADATA,sha256=gj6We8d7T27etGlhriYOvyJmNLF-bX0hbHui6sc_zmo,9715
171
+ sunholo-0.119.11.dist-info/WHEEL,sha256=nn6H5-ilmfVryoAQl3ZQ2l8SH5imPWFpm1A5FgEuFV4,91
172
+ sunholo-0.119.11.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
173
+ sunholo-0.119.11.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
174
+ sunholo-0.119.11.dist-info/RECORD,,