llama-cloud 0.0.16__py3-none-any.whl → 0.1.0__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.

Potentially problematic release.


This version of llama-cloud might be problematic. Click here for more details.

Files changed (133) hide show
  1. llama_cloud/__init__.py +8 -30
  2. llama_cloud/client.py +0 -3
  3. llama_cloud/resources/__init__.py +2 -10
  4. llama_cloud/resources/data_sinks/__init__.py +2 -2
  5. llama_cloud/resources/data_sinks/client.py +2 -2
  6. llama_cloud/resources/data_sinks/types/__init__.py +1 -2
  7. llama_cloud/resources/data_sinks/types/data_sink_update_component.py +19 -2
  8. llama_cloud/resources/data_sources/__init__.py +2 -2
  9. llama_cloud/resources/data_sources/client.py +6 -6
  10. llama_cloud/resources/data_sources/types/__init__.py +1 -2
  11. llama_cloud/resources/data_sources/types/data_source_update_component.py +23 -2
  12. llama_cloud/resources/extraction/client.py +14 -14
  13. llama_cloud/resources/files/client.py +10 -10
  14. llama_cloud/resources/organizations/client.py +2 -2
  15. llama_cloud/resources/parsing/client.py +68 -60
  16. llama_cloud/resources/pipelines/__init__.py +0 -4
  17. llama_cloud/resources/pipelines/client.py +50 -340
  18. llama_cloud/resources/pipelines/types/__init__.py +1 -7
  19. llama_cloud/resources/pipelines/types/pipeline_update_embedding_config.py +15 -15
  20. llama_cloud/resources/pipelines/types/pipeline_update_transform_config.py +1 -24
  21. llama_cloud/types/__init__.py +9 -23
  22. llama_cloud/types/azure_open_ai_embedding.py +7 -34
  23. llama_cloud/types/base_prompt_template.py +3 -14
  24. llama_cloud/types/bedrock_embedding.py +7 -17
  25. llama_cloud/types/box_auth_mechanism.py +0 -4
  26. llama_cloud/types/character_splitter.py +3 -4
  27. llama_cloud/types/chat_data.py +0 -5
  28. llama_cloud/types/chat_message.py +1 -6
  29. llama_cloud/types/cloud_az_storage_blob_data_source.py +7 -18
  30. llama_cloud/types/cloud_box_data_source.py +6 -16
  31. llama_cloud/types/cloud_chroma_vector_store.py +1 -5
  32. llama_cloud/types/cloud_confluence_data_source.py +6 -10
  33. llama_cloud/types/cloud_document.py +1 -3
  34. llama_cloud/types/cloud_document_create.py +1 -3
  35. llama_cloud/types/{user.py → cloud_google_drive_data_source.py} +6 -6
  36. llama_cloud/types/cloud_jira_data_source.py +4 -6
  37. llama_cloud/types/cloud_notion_page_data_source.py +2 -6
  38. llama_cloud/types/cloud_one_drive_data_source.py +2 -6
  39. llama_cloud/types/cloud_postgres_vector_store.py +0 -4
  40. llama_cloud/types/cloud_s_3_data_source.py +4 -12
  41. llama_cloud/types/cloud_sharepoint_data_source.py +5 -9
  42. llama_cloud/types/cloud_slack_data_source.py +6 -10
  43. llama_cloud/types/cloud_weaviate_vector_store.py +0 -4
  44. llama_cloud/types/code_splitter.py +2 -1
  45. llama_cloud/types/cohere_embedding.py +3 -7
  46. llama_cloud/types/configurable_data_sink_names.py +0 -4
  47. llama_cloud/types/configurable_data_source_names.py +4 -4
  48. llama_cloud/types/configurable_transformation_names.py +0 -4
  49. llama_cloud/types/configured_transformation_item_component.py +29 -2
  50. llama_cloud/types/data_sink.py +2 -2
  51. llama_cloud/types/data_sink_component.py +19 -2
  52. llama_cloud/types/data_sink_create_component.py +19 -2
  53. llama_cloud/types/data_source.py +3 -5
  54. llama_cloud/types/data_source_component.py +23 -2
  55. llama_cloud/types/data_source_create.py +1 -3
  56. llama_cloud/types/data_source_create_component.py +23 -2
  57. llama_cloud/types/eval_dataset.py +2 -2
  58. llama_cloud/types/eval_dataset_job_record.py +7 -13
  59. llama_cloud/types/eval_execution_params_override.py +2 -6
  60. llama_cloud/types/eval_metric.py +17 -0
  61. llama_cloud/types/eval_question.py +2 -6
  62. llama_cloud/types/extend_vertex_text_embedding.py +6 -18
  63. llama_cloud/types/extraction_result.py +5 -3
  64. llama_cloud/types/extraction_schema.py +3 -5
  65. llama_cloud/types/file.py +7 -11
  66. llama_cloud/types/gemini_embedding.py +5 -9
  67. llama_cloud/types/hugging_face_inference_api_embedding.py +10 -26
  68. llama_cloud/types/input_message.py +2 -4
  69. llama_cloud/types/llama_parse_parameters.py +1 -0
  70. llama_cloud/types/llama_parse_supported_file_extensions.py +0 -4
  71. llama_cloud/types/llm.py +9 -8
  72. llama_cloud/types/llm_parameters.py +2 -7
  73. llama_cloud/types/local_eval.py +8 -10
  74. llama_cloud/types/local_eval_results.py +1 -1
  75. llama_cloud/types/managed_ingestion_status_response.py +3 -5
  76. llama_cloud/types/markdown_element_node_parser.py +4 -5
  77. llama_cloud/types/markdown_node_parser.py +2 -1
  78. llama_cloud/types/message_annotation.py +1 -6
  79. llama_cloud/types/metric_result.py +3 -3
  80. llama_cloud/types/node_parser.py +2 -1
  81. llama_cloud/types/node_relationship.py +44 -0
  82. llama_cloud/types/object_type.py +0 -4
  83. llama_cloud/types/open_ai_embedding.py +6 -12
  84. llama_cloud/types/organization.py +2 -2
  85. llama_cloud/types/page_splitter_node_parser.py +3 -2
  86. llama_cloud/types/parsing_job_json_result.py +2 -2
  87. llama_cloud/types/parsing_job_markdown_result.py +1 -1
  88. llama_cloud/types/parsing_job_text_result.py +1 -1
  89. llama_cloud/types/partition_names.py +45 -0
  90. llama_cloud/types/pipeline.py +7 -17
  91. llama_cloud/types/pipeline_configuration_hashes.py +3 -3
  92. llama_cloud/types/pipeline_create.py +6 -18
  93. llama_cloud/types/pipeline_create_embedding_config.py +15 -15
  94. llama_cloud/types/pipeline_create_transform_config.py +1 -24
  95. llama_cloud/types/pipeline_data_source.py +5 -11
  96. llama_cloud/types/pipeline_data_source_component.py +23 -2
  97. llama_cloud/types/pipeline_data_source_create.py +1 -3
  98. llama_cloud/types/pipeline_deployment.py +4 -8
  99. llama_cloud/types/pipeline_embedding_config.py +15 -15
  100. llama_cloud/types/pipeline_file.py +10 -18
  101. llama_cloud/types/pipeline_file_create.py +1 -3
  102. llama_cloud/types/playground_session.py +2 -2
  103. llama_cloud/types/preset_retrieval_params.py +8 -11
  104. llama_cloud/types/presigned_url.py +1 -3
  105. llama_cloud/types/project.py +2 -2
  106. llama_cloud/types/prompt_mixin_prompts.py +1 -1
  107. llama_cloud/types/prompt_spec.py +2 -4
  108. llama_cloud/types/related_node_info.py +0 -4
  109. llama_cloud/types/retrieval_mode.py +0 -4
  110. llama_cloud/types/sentence_splitter.py +3 -4
  111. llama_cloud/types/supported_llm_model_names.py +0 -4
  112. llama_cloud/types/text_node.py +3 -9
  113. llama_cloud/types/token_text_splitter.py +2 -1
  114. llama_cloud/types/transformation_category_names.py +0 -4
  115. llama_cloud/types/user_organization.py +5 -9
  116. llama_cloud/types/user_organization_create.py +2 -2
  117. llama_cloud/types/user_organization_delete.py +2 -2
  118. {llama_cloud-0.0.16.dist-info → llama_cloud-0.1.0.dist-info}/METADATA +1 -1
  119. llama_cloud-0.1.0.dist-info/RECORD +226 -0
  120. llama_cloud/resources/auth/__init__.py +0 -2
  121. llama_cloud/resources/auth/client.py +0 -124
  122. llama_cloud/resources/data_sinks/types/data_sink_update_component_one.py +0 -23
  123. llama_cloud/resources/data_sources/types/data_source_update_component_one.py +0 -25
  124. llama_cloud/types/configured_transformation_item_component_one.py +0 -35
  125. llama_cloud/types/custom_claims.py +0 -58
  126. llama_cloud/types/data_sink_component_one.py +0 -23
  127. llama_cloud/types/data_sink_create_component_one.py +0 -23
  128. llama_cloud/types/data_source_component_one.py +0 -25
  129. llama_cloud/types/data_source_create_component_one.py +0 -25
  130. llama_cloud/types/pipeline_data_source_component_one.py +0 -25
  131. llama_cloud-0.0.16.dist-info/RECORD +0 -234
  132. {llama_cloud-0.0.16.dist-info → llama_cloud-0.1.0.dist-info}/LICENSE +0 -0
  133. {llama_cloud-0.0.16.dist-info → llama_cloud-0.1.0.dist-info}/WHEEL +0 -0
@@ -108,6 +108,7 @@ class ParsingClient:
108
108
  do_not_cache: bool,
109
109
  gpt_4_o_mode: bool,
110
110
  fast_mode: bool,
111
+ premium_mode: bool,
111
112
  gpt_4_o_api_key: str,
112
113
  do_not_unroll_columns: bool,
113
114
  page_separator: str,
@@ -124,7 +125,7 @@ class ParsingClient:
124
125
  disable_reconstruction: bool,
125
126
  input_s_3_path: str,
126
127
  output_s_3_path_prefix: str,
127
- file: typing.IO,
128
+ file: typing.Optional[str] = OMIT,
128
129
  ) -> ParsingJob:
129
130
  """
130
131
  Upload a file to s3 and create a job. return a job id
@@ -144,6 +145,8 @@ class ParsingClient:
144
145
 
145
146
  - fast_mode: bool.
146
147
 
148
+ - premium_mode: bool.
149
+
147
150
  - gpt_4_o_api_key: str.
148
151
 
149
152
  - do_not_unroll_columns: bool.
@@ -176,39 +179,40 @@ class ParsingClient:
176
179
 
177
180
  - output_s_3_path_prefix: str.
178
181
 
179
- - file: typing.IO.
182
+ - file: typing.Optional[str].
180
183
  """
184
+ _request: typing.Dict[str, typing.Any] = {
185
+ "language": language,
186
+ "parsing_instruction": parsing_instruction,
187
+ "skip_diagonal_text": skip_diagonal_text,
188
+ "invalidate_cache": invalidate_cache,
189
+ "do_not_cache": do_not_cache,
190
+ "gpt4o_mode": gpt_4_o_mode,
191
+ "fast_mode": fast_mode,
192
+ "premium_mode": premium_mode,
193
+ "gpt4o_api_key": gpt_4_o_api_key,
194
+ "do_not_unroll_columns": do_not_unroll_columns,
195
+ "page_separator": page_separator,
196
+ "bounding_box": bounding_box,
197
+ "target_pages": target_pages,
198
+ "use_vendor_multimodal_model": use_vendor_multimodal_model,
199
+ "vendor_multimodal_model_name": vendor_multimodal_model_name,
200
+ "vendor_multimodal_api_key": vendor_multimodal_api_key,
201
+ "page_prefix": page_prefix,
202
+ "page_suffix": page_suffix,
203
+ "webhook_url": webhook_url,
204
+ "take_screenshot": take_screenshot,
205
+ "disable_ocr": disable_ocr,
206
+ "disable_reconstruction": disable_reconstruction,
207
+ "input_s3_path": input_s_3_path,
208
+ "output_s3_path_prefix": output_s_3_path_prefix,
209
+ }
210
+ if file is not OMIT:
211
+ _request["file"] = file
181
212
  _response = self._client_wrapper.httpx_client.request(
182
213
  "POST",
183
214
  urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/v1/parsing/upload"),
184
- data=jsonable_encoder(
185
- {
186
- "language": language,
187
- "parsing_instruction": parsing_instruction,
188
- "skip_diagonal_text": skip_diagonal_text,
189
- "invalidate_cache": invalidate_cache,
190
- "do_not_cache": do_not_cache,
191
- "gpt4o_mode": gpt_4_o_mode,
192
- "fast_mode": fast_mode,
193
- "gpt4o_api_key": gpt_4_o_api_key,
194
- "do_not_unroll_columns": do_not_unroll_columns,
195
- "page_separator": page_separator,
196
- "bounding_box": bounding_box,
197
- "target_pages": target_pages,
198
- "use_vendor_multimodal_model": use_vendor_multimodal_model,
199
- "vendor_multimodal_model_name": vendor_multimodal_model_name,
200
- "vendor_multimodal_api_key": vendor_multimodal_api_key,
201
- "page_prefix": page_prefix,
202
- "page_suffix": page_suffix,
203
- "webhook_url": webhook_url,
204
- "take_screenshot": take_screenshot,
205
- "disable_ocr": disable_ocr,
206
- "disable_reconstruction": disable_reconstruction,
207
- "input_s3_path": input_s_3_path,
208
- "output_s3_path_prefix": output_s_3_path_prefix,
209
- }
210
- ),
211
- files={"file": file},
215
+ json=jsonable_encoder(_request),
212
216
  headers=self._client_wrapper.get_headers(),
213
217
  timeout=60,
214
218
  )
@@ -657,6 +661,7 @@ class AsyncParsingClient:
657
661
  do_not_cache: bool,
658
662
  gpt_4_o_mode: bool,
659
663
  fast_mode: bool,
664
+ premium_mode: bool,
660
665
  gpt_4_o_api_key: str,
661
666
  do_not_unroll_columns: bool,
662
667
  page_separator: str,
@@ -673,7 +678,7 @@ class AsyncParsingClient:
673
678
  disable_reconstruction: bool,
674
679
  input_s_3_path: str,
675
680
  output_s_3_path_prefix: str,
676
- file: typing.IO,
681
+ file: typing.Optional[str] = OMIT,
677
682
  ) -> ParsingJob:
678
683
  """
679
684
  Upload a file to s3 and create a job. return a job id
@@ -693,6 +698,8 @@ class AsyncParsingClient:
693
698
 
694
699
  - fast_mode: bool.
695
700
 
701
+ - premium_mode: bool.
702
+
696
703
  - gpt_4_o_api_key: str.
697
704
 
698
705
  - do_not_unroll_columns: bool.
@@ -725,39 +732,40 @@ class AsyncParsingClient:
725
732
 
726
733
  - output_s_3_path_prefix: str.
727
734
 
728
- - file: typing.IO.
735
+ - file: typing.Optional[str].
729
736
  """
737
+ _request: typing.Dict[str, typing.Any] = {
738
+ "language": language,
739
+ "parsing_instruction": parsing_instruction,
740
+ "skip_diagonal_text": skip_diagonal_text,
741
+ "invalidate_cache": invalidate_cache,
742
+ "do_not_cache": do_not_cache,
743
+ "gpt4o_mode": gpt_4_o_mode,
744
+ "fast_mode": fast_mode,
745
+ "premium_mode": premium_mode,
746
+ "gpt4o_api_key": gpt_4_o_api_key,
747
+ "do_not_unroll_columns": do_not_unroll_columns,
748
+ "page_separator": page_separator,
749
+ "bounding_box": bounding_box,
750
+ "target_pages": target_pages,
751
+ "use_vendor_multimodal_model": use_vendor_multimodal_model,
752
+ "vendor_multimodal_model_name": vendor_multimodal_model_name,
753
+ "vendor_multimodal_api_key": vendor_multimodal_api_key,
754
+ "page_prefix": page_prefix,
755
+ "page_suffix": page_suffix,
756
+ "webhook_url": webhook_url,
757
+ "take_screenshot": take_screenshot,
758
+ "disable_ocr": disable_ocr,
759
+ "disable_reconstruction": disable_reconstruction,
760
+ "input_s3_path": input_s_3_path,
761
+ "output_s3_path_prefix": output_s_3_path_prefix,
762
+ }
763
+ if file is not OMIT:
764
+ _request["file"] = file
730
765
  _response = await self._client_wrapper.httpx_client.request(
731
766
  "POST",
732
767
  urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/v1/parsing/upload"),
733
- data=jsonable_encoder(
734
- {
735
- "language": language,
736
- "parsing_instruction": parsing_instruction,
737
- "skip_diagonal_text": skip_diagonal_text,
738
- "invalidate_cache": invalidate_cache,
739
- "do_not_cache": do_not_cache,
740
- "gpt4o_mode": gpt_4_o_mode,
741
- "fast_mode": fast_mode,
742
- "gpt4o_api_key": gpt_4_o_api_key,
743
- "do_not_unroll_columns": do_not_unroll_columns,
744
- "page_separator": page_separator,
745
- "bounding_box": bounding_box,
746
- "target_pages": target_pages,
747
- "use_vendor_multimodal_model": use_vendor_multimodal_model,
748
- "vendor_multimodal_model_name": vendor_multimodal_model_name,
749
- "vendor_multimodal_api_key": vendor_multimodal_api_key,
750
- "page_prefix": page_prefix,
751
- "page_suffix": page_suffix,
752
- "webhook_url": webhook_url,
753
- "take_screenshot": take_screenshot,
754
- "disable_ocr": disable_ocr,
755
- "disable_reconstruction": disable_reconstruction,
756
- "input_s3_path": input_s_3_path,
757
- "output_s3_path_prefix": output_s_3_path_prefix,
758
- }
759
- ),
760
- files={"file": file},
768
+ json=jsonable_encoder(_request),
761
769
  headers=self._client_wrapper.get_headers(),
762
770
  timeout=60,
763
771
  )
@@ -11,8 +11,6 @@ from .types import (
11
11
  PipelineUpdateEmbeddingConfig_OpenaiEmbedding,
12
12
  PipelineUpdateEmbeddingConfig_VertexaiEmbedding,
13
13
  PipelineUpdateTransformConfig,
14
- PipelineUpdateTransformConfig_Advanced,
15
- PipelineUpdateTransformConfig_Auto,
16
14
  )
17
15
 
18
16
  __all__ = [
@@ -26,6 +24,4 @@ __all__ = [
26
24
  "PipelineUpdateEmbeddingConfig_OpenaiEmbedding",
27
25
  "PipelineUpdateEmbeddingConfig_VertexaiEmbedding",
28
26
  "PipelineUpdateTransformConfig",
29
- "PipelineUpdateTransformConfig_Advanced",
30
- "PipelineUpdateTransformConfig_Auto",
31
27
  ]