llama-cloud 0.1.4__py3-none-any.whl → 0.1.6__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 (117) hide show
  1. llama_cloud/__init__.py +76 -10
  2. llama_cloud/client.py +3 -0
  3. llama_cloud/environment.py +1 -1
  4. llama_cloud/resources/__init__.py +23 -1
  5. llama_cloud/resources/data_sinks/client.py +26 -20
  6. llama_cloud/resources/data_sources/client.py +16 -16
  7. llama_cloud/resources/embedding_model_configs/__init__.py +23 -0
  8. llama_cloud/resources/embedding_model_configs/client.py +416 -0
  9. llama_cloud/resources/embedding_model_configs/types/__init__.py +23 -0
  10. llama_cloud/resources/embedding_model_configs/types/embedding_model_config_create_embedding_config.py +89 -0
  11. llama_cloud/resources/evals/client.py +36 -26
  12. llama_cloud/resources/extraction/client.py +32 -32
  13. llama_cloud/resources/files/__init__.py +2 -2
  14. llama_cloud/resources/files/client.py +310 -54
  15. llama_cloud/resources/files/types/__init__.py +3 -1
  16. llama_cloud/resources/files/types/file_create_from_url_resource_info_value.py +7 -0
  17. llama_cloud/resources/files/types/file_create_permission_info_value.py +7 -0
  18. llama_cloud/resources/organizations/client.py +125 -56
  19. llama_cloud/resources/parsing/client.py +652 -264
  20. llama_cloud/resources/pipelines/client.py +617 -310
  21. llama_cloud/resources/projects/client.py +341 -136
  22. llama_cloud/types/__init__.py +58 -10
  23. llama_cloud/types/azure_open_ai_embedding.py +12 -6
  24. llama_cloud/types/base_prompt_template.py +6 -2
  25. llama_cloud/types/bedrock_embedding.py +12 -6
  26. llama_cloud/types/character_splitter.py +4 -2
  27. llama_cloud/types/chat_message.py +1 -1
  28. llama_cloud/types/cloud_az_storage_blob_data_source.py +16 -7
  29. llama_cloud/types/cloud_box_data_source.py +13 -6
  30. llama_cloud/types/cloud_confluence_data_source.py +7 -6
  31. llama_cloud/types/cloud_document.py +3 -1
  32. llama_cloud/types/cloud_document_create.py +3 -1
  33. llama_cloud/types/cloud_google_drive_data_source.py +1 -0
  34. llama_cloud/types/cloud_jira_data_source.py +7 -4
  35. llama_cloud/types/cloud_notion_page_data_source.py +3 -2
  36. llama_cloud/types/cloud_one_drive_data_source.py +6 -2
  37. llama_cloud/types/cloud_postgres_vector_store.py +1 -1
  38. llama_cloud/types/cloud_s_3_data_source.py +9 -4
  39. llama_cloud/types/cloud_sharepoint_data_source.py +9 -5
  40. llama_cloud/types/cloud_slack_data_source.py +7 -6
  41. llama_cloud/types/code_splitter.py +1 -1
  42. llama_cloud/types/cohere_embedding.py +7 -3
  43. llama_cloud/types/data_sink.py +4 -4
  44. llama_cloud/types/data_sink_create.py +1 -1
  45. llama_cloud/types/data_source.py +7 -5
  46. llama_cloud/types/data_source_create.py +4 -2
  47. llama_cloud/types/embedding_model_config.py +43 -0
  48. llama_cloud/types/embedding_model_config_embedding_config.py +89 -0
  49. llama_cloud/types/embedding_model_config_update.py +35 -0
  50. llama_cloud/types/embedding_model_config_update_embedding_config.py +89 -0
  51. llama_cloud/types/eval_dataset.py +2 -2
  52. llama_cloud/types/eval_dataset_job_record.py +13 -7
  53. llama_cloud/types/eval_execution_params_override.py +6 -2
  54. llama_cloud/types/eval_question.py +2 -2
  55. llama_cloud/types/extraction_result.py +2 -2
  56. llama_cloud/types/extraction_schema.py +5 -3
  57. llama_cloud/types/file.py +15 -7
  58. llama_cloud/types/file_permission_info_value.py +5 -0
  59. llama_cloud/types/filter_operator.py +2 -2
  60. llama_cloud/types/gemini_embedding.py +10 -6
  61. llama_cloud/types/hugging_face_inference_api_embedding.py +27 -11
  62. llama_cloud/types/input_message.py +3 -1
  63. llama_cloud/types/interval_usage_and_plan.py +36 -0
  64. llama_cloud/types/job_name_mapping.py +4 -0
  65. llama_cloud/types/llama_parse_parameters.py +21 -0
  66. llama_cloud/types/llm.py +4 -2
  67. llama_cloud/types/llm_parameters.py +5 -2
  68. llama_cloud/types/local_eval.py +10 -8
  69. llama_cloud/types/local_eval_results.py +1 -1
  70. llama_cloud/types/managed_ingestion_status_response.py +5 -3
  71. llama_cloud/types/markdown_element_node_parser.py +5 -3
  72. llama_cloud/types/markdown_node_parser.py +3 -2
  73. llama_cloud/types/metadata_filter.py +2 -2
  74. llama_cloud/types/metric_result.py +3 -3
  75. llama_cloud/types/node_parser.py +1 -1
  76. llama_cloud/types/open_ai_embedding.py +12 -6
  77. llama_cloud/types/organization.py +2 -2
  78. llama_cloud/types/page_splitter_node_parser.py +2 -2
  79. llama_cloud/types/paginated_list_pipeline_files_response.py +35 -0
  80. llama_cloud/types/parsing_job_structured_result.py +32 -0
  81. llama_cloud/types/permission.py +3 -3
  82. llama_cloud/types/pipeline.py +17 -6
  83. llama_cloud/types/pipeline_configuration_hashes.py +3 -3
  84. llama_cloud/types/pipeline_create.py +15 -4
  85. llama_cloud/types/pipeline_data_source.py +13 -7
  86. llama_cloud/types/pipeline_data_source_create.py +3 -1
  87. llama_cloud/types/pipeline_deployment.py +4 -4
  88. llama_cloud/types/pipeline_file.py +25 -10
  89. llama_cloud/types/pipeline_file_create.py +3 -1
  90. llama_cloud/types/pipeline_file_permission_info_value.py +7 -0
  91. llama_cloud/types/plan.py +40 -0
  92. llama_cloud/types/playground_session.py +2 -2
  93. llama_cloud/types/preset_retrieval_params.py +14 -7
  94. llama_cloud/types/presigned_url.py +3 -1
  95. llama_cloud/types/project.py +2 -2
  96. llama_cloud/types/prompt_mixin_prompts.py +1 -1
  97. llama_cloud/types/prompt_spec.py +4 -2
  98. llama_cloud/types/role.py +3 -3
  99. llama_cloud/types/sentence_splitter.py +4 -2
  100. llama_cloud/types/text_node.py +3 -3
  101. llama_cloud/types/{hugging_face_inference_api_embedding_token.py → token.py} +1 -1
  102. llama_cloud/types/token_text_splitter.py +1 -1
  103. llama_cloud/types/usage.py +41 -0
  104. llama_cloud/types/user_organization.py +9 -5
  105. llama_cloud/types/user_organization_create.py +4 -4
  106. llama_cloud/types/user_organization_delete.py +2 -2
  107. llama_cloud/types/user_organization_role.py +2 -2
  108. llama_cloud/types/value.py +5 -0
  109. llama_cloud/types/vertex_text_embedding.py +9 -5
  110. {llama_cloud-0.1.4.dist-info → llama_cloud-0.1.6.dist-info}/METADATA +1 -1
  111. {llama_cloud-0.1.4.dist-info → llama_cloud-0.1.6.dist-info}/RECORD +113 -99
  112. llama_cloud/types/data_sink_component.py +0 -20
  113. llama_cloud/types/data_source_component.py +0 -28
  114. llama_cloud/types/metadata_filter_value.py +0 -5
  115. llama_cloud/types/pipeline_data_source_component.py +0 -28
  116. {llama_cloud-0.1.4.dist-info → llama_cloud-0.1.6.dist-info}/LICENSE +0 -0
  117. {llama_cloud-0.1.4.dist-info → llama_cloud-0.1.6.dist-info}/WHEEL +0 -0
llama_cloud/__init__.py CHANGED
@@ -52,18 +52,34 @@ from .types import (
52
52
  ConfiguredTransformationItem,
53
53
  ConfiguredTransformationItemComponent,
54
54
  DataSink,
55
- DataSinkComponent,
56
55
  DataSinkCreate,
57
56
  DataSinkCreateComponent,
58
57
  DataSinkDefinition,
59
58
  DataSource,
60
- DataSourceComponent,
61
59
  DataSourceCreate,
62
60
  DataSourceCreateComponent,
63
61
  DataSourceCreateCustomMetadataValue,
64
62
  DataSourceCustomMetadataValue,
65
63
  DataSourceDefinition,
66
64
  ElementSegmentationConfig,
65
+ EmbeddingModelConfig,
66
+ EmbeddingModelConfigEmbeddingConfig,
67
+ EmbeddingModelConfigEmbeddingConfig_AzureEmbedding,
68
+ EmbeddingModelConfigEmbeddingConfig_BedrockEmbedding,
69
+ EmbeddingModelConfigEmbeddingConfig_CohereEmbedding,
70
+ EmbeddingModelConfigEmbeddingConfig_GeminiEmbedding,
71
+ EmbeddingModelConfigEmbeddingConfig_HuggingfaceApiEmbedding,
72
+ EmbeddingModelConfigEmbeddingConfig_OpenaiEmbedding,
73
+ EmbeddingModelConfigEmbeddingConfig_VertexaiEmbedding,
74
+ EmbeddingModelConfigUpdate,
75
+ EmbeddingModelConfigUpdateEmbeddingConfig,
76
+ EmbeddingModelConfigUpdateEmbeddingConfig_AzureEmbedding,
77
+ EmbeddingModelConfigUpdateEmbeddingConfig_BedrockEmbedding,
78
+ EmbeddingModelConfigUpdateEmbeddingConfig_CohereEmbedding,
79
+ EmbeddingModelConfigUpdateEmbeddingConfig_GeminiEmbedding,
80
+ EmbeddingModelConfigUpdateEmbeddingConfig_HuggingfaceApiEmbedding,
81
+ EmbeddingModelConfigUpdateEmbeddingConfig_OpenaiEmbedding,
82
+ EmbeddingModelConfigUpdateEmbeddingConfig_VertexaiEmbedding,
67
83
  EvalDataset,
68
84
  EvalDatasetJobParams,
69
85
  EvalDatasetJobRecord,
@@ -79,6 +95,7 @@ from .types import (
79
95
  ExtractionSchema,
80
96
  ExtractionSchemaDataSchemaValue,
81
97
  File,
98
+ FilePermissionInfoValue,
82
99
  FileResourceInfoValue,
83
100
  FilterCondition,
84
101
  FilterOperator,
@@ -87,9 +104,9 @@ from .types import (
87
104
  HttpValidationError,
88
105
  HuggingFaceInferenceApiEmbedding,
89
106
  HuggingFaceInferenceApiEmbeddingConfig,
90
- HuggingFaceInferenceApiEmbeddingToken,
91
107
  IngestionErrorResponse,
92
108
  InputMessage,
109
+ IntervalUsageAndPlan,
93
110
  JobNameMapping,
94
111
  LlamaParseParameters,
95
112
  LlamaParseSupportedFileExtensions,
@@ -106,7 +123,6 @@ from .types import (
106
123
  MessageAnnotation,
107
124
  MessageRole,
108
125
  MetadataFilter,
109
- MetadataFilterValue,
110
126
  MetadataFilters,
111
127
  MetadataFiltersFiltersItem,
112
128
  MetricResult,
@@ -123,11 +139,13 @@ from .types import (
123
139
  PageScreenshotNodeWithScore,
124
140
  PageSegmentationConfig,
125
141
  PageSplitterNodeParser,
142
+ PaginatedListPipelineFilesResponse,
126
143
  ParserLanguages,
127
144
  ParsingHistoryItem,
128
145
  ParsingJob,
129
146
  ParsingJobJsonResult,
130
147
  ParsingJobMarkdownResult,
148
+ ParsingJobStructuredResult,
131
149
  ParsingJobTextResult,
132
150
  ParsingUsage,
133
151
  PartitionNames,
@@ -145,7 +163,6 @@ from .types import (
145
163
  PipelineCreateEmbeddingConfig_VertexaiEmbedding,
146
164
  PipelineCreateTransformConfig,
147
165
  PipelineDataSource,
148
- PipelineDataSourceComponent,
149
166
  PipelineDataSourceCreate,
150
167
  PipelineDataSourceCustomMetadataValue,
151
168
  PipelineDeployment,
@@ -162,11 +179,13 @@ from .types import (
162
179
  PipelineFileCreate,
163
180
  PipelineFileCreateCustomMetadataValue,
164
181
  PipelineFileCustomMetadataValue,
182
+ PipelineFilePermissionInfoValue,
165
183
  PipelineFileResourceInfoValue,
166
184
  PipelineTransformConfig,
167
185
  PipelineTransformConfig_Advanced,
168
186
  PipelineTransformConfig_Auto,
169
187
  PipelineType,
188
+ Plan,
170
189
  PlaygroundSession,
171
190
  Pooling,
172
191
  PresetRetrievalParams,
@@ -189,15 +208,18 @@ from .types import (
189
208
  TextNode,
190
209
  TextNodeRelationshipsValue,
191
210
  TextNodeWithScore,
211
+ Token,
192
212
  TokenChunkingConfig,
193
213
  TokenTextSplitter,
194
214
  TransformationCategoryNames,
215
+ Usage,
195
216
  UserOrganization,
196
217
  UserOrganizationCreate,
197
218
  UserOrganizationDelete,
198
219
  UserOrganizationRole,
199
220
  ValidationError,
200
221
  ValidationErrorLocItem,
222
+ Value,
201
223
  VertexAiEmbeddingConfig,
202
224
  VertexEmbeddingMode,
203
225
  VertexTextEmbedding,
@@ -207,8 +229,18 @@ from .resources import (
207
229
  DataSinkUpdateComponent,
208
230
  DataSourceUpdateComponent,
209
231
  DataSourceUpdateCustomMetadataValue,
232
+ EmbeddingModelConfigCreateEmbeddingConfig,
233
+ EmbeddingModelConfigCreateEmbeddingConfig_AzureEmbedding,
234
+ EmbeddingModelConfigCreateEmbeddingConfig_BedrockEmbedding,
235
+ EmbeddingModelConfigCreateEmbeddingConfig_CohereEmbedding,
236
+ EmbeddingModelConfigCreateEmbeddingConfig_GeminiEmbedding,
237
+ EmbeddingModelConfigCreateEmbeddingConfig_HuggingfaceApiEmbedding,
238
+ EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding,
239
+ EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding,
210
240
  ExtractionSchemaCreateDataSchemaValue,
211
241
  ExtractionSchemaUpdateDataSchemaValue,
242
+ FileCreateFromUrlResourceInfoValue,
243
+ FileCreatePermissionInfoValue,
212
244
  FileCreateResourceInfoValue,
213
245
  PipelineFileUpdateCustomMetadataValue,
214
246
  PipelineUpdateEmbeddingConfig,
@@ -223,6 +255,7 @@ from .resources import (
223
255
  component_definitions,
224
256
  data_sinks,
225
257
  data_sources,
258
+ embedding_model_configs,
226
259
  evals,
227
260
  extraction,
228
261
  files,
@@ -285,13 +318,11 @@ __all__ = [
285
318
  "ConfiguredTransformationItem",
286
319
  "ConfiguredTransformationItemComponent",
287
320
  "DataSink",
288
- "DataSinkComponent",
289
321
  "DataSinkCreate",
290
322
  "DataSinkCreateComponent",
291
323
  "DataSinkDefinition",
292
324
  "DataSinkUpdateComponent",
293
325
  "DataSource",
294
- "DataSourceComponent",
295
326
  "DataSourceCreate",
296
327
  "DataSourceCreateComponent",
297
328
  "DataSourceCreateCustomMetadataValue",
@@ -300,6 +331,32 @@ __all__ = [
300
331
  "DataSourceUpdateComponent",
301
332
  "DataSourceUpdateCustomMetadataValue",
302
333
  "ElementSegmentationConfig",
334
+ "EmbeddingModelConfig",
335
+ "EmbeddingModelConfigCreateEmbeddingConfig",
336
+ "EmbeddingModelConfigCreateEmbeddingConfig_AzureEmbedding",
337
+ "EmbeddingModelConfigCreateEmbeddingConfig_BedrockEmbedding",
338
+ "EmbeddingModelConfigCreateEmbeddingConfig_CohereEmbedding",
339
+ "EmbeddingModelConfigCreateEmbeddingConfig_GeminiEmbedding",
340
+ "EmbeddingModelConfigCreateEmbeddingConfig_HuggingfaceApiEmbedding",
341
+ "EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding",
342
+ "EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding",
343
+ "EmbeddingModelConfigEmbeddingConfig",
344
+ "EmbeddingModelConfigEmbeddingConfig_AzureEmbedding",
345
+ "EmbeddingModelConfigEmbeddingConfig_BedrockEmbedding",
346
+ "EmbeddingModelConfigEmbeddingConfig_CohereEmbedding",
347
+ "EmbeddingModelConfigEmbeddingConfig_GeminiEmbedding",
348
+ "EmbeddingModelConfigEmbeddingConfig_HuggingfaceApiEmbedding",
349
+ "EmbeddingModelConfigEmbeddingConfig_OpenaiEmbedding",
350
+ "EmbeddingModelConfigEmbeddingConfig_VertexaiEmbedding",
351
+ "EmbeddingModelConfigUpdate",
352
+ "EmbeddingModelConfigUpdateEmbeddingConfig",
353
+ "EmbeddingModelConfigUpdateEmbeddingConfig_AzureEmbedding",
354
+ "EmbeddingModelConfigUpdateEmbeddingConfig_BedrockEmbedding",
355
+ "EmbeddingModelConfigUpdateEmbeddingConfig_CohereEmbedding",
356
+ "EmbeddingModelConfigUpdateEmbeddingConfig_GeminiEmbedding",
357
+ "EmbeddingModelConfigUpdateEmbeddingConfig_HuggingfaceApiEmbedding",
358
+ "EmbeddingModelConfigUpdateEmbeddingConfig_OpenaiEmbedding",
359
+ "EmbeddingModelConfigUpdateEmbeddingConfig_VertexaiEmbedding",
303
360
  "EvalDataset",
304
361
  "EvalDatasetJobParams",
305
362
  "EvalDatasetJobRecord",
@@ -317,7 +374,10 @@ __all__ = [
317
374
  "ExtractionSchemaDataSchemaValue",
318
375
  "ExtractionSchemaUpdateDataSchemaValue",
319
376
  "File",
377
+ "FileCreateFromUrlResourceInfoValue",
378
+ "FileCreatePermissionInfoValue",
320
379
  "FileCreateResourceInfoValue",
380
+ "FilePermissionInfoValue",
321
381
  "FileResourceInfoValue",
322
382
  "FilterCondition",
323
383
  "FilterOperator",
@@ -326,9 +386,9 @@ __all__ = [
326
386
  "HttpValidationError",
327
387
  "HuggingFaceInferenceApiEmbedding",
328
388
  "HuggingFaceInferenceApiEmbeddingConfig",
329
- "HuggingFaceInferenceApiEmbeddingToken",
330
389
  "IngestionErrorResponse",
331
390
  "InputMessage",
391
+ "IntervalUsageAndPlan",
332
392
  "JobNameMapping",
333
393
  "LlamaCloudEnvironment",
334
394
  "LlamaParseParameters",
@@ -346,7 +406,6 @@ __all__ = [
346
406
  "MessageAnnotation",
347
407
  "MessageRole",
348
408
  "MetadataFilter",
349
- "MetadataFilterValue",
350
409
  "MetadataFilters",
351
410
  "MetadataFiltersFiltersItem",
352
411
  "MetricResult",
@@ -363,11 +422,13 @@ __all__ = [
363
422
  "PageScreenshotNodeWithScore",
364
423
  "PageSegmentationConfig",
365
424
  "PageSplitterNodeParser",
425
+ "PaginatedListPipelineFilesResponse",
366
426
  "ParserLanguages",
367
427
  "ParsingHistoryItem",
368
428
  "ParsingJob",
369
429
  "ParsingJobJsonResult",
370
430
  "ParsingJobMarkdownResult",
431
+ "ParsingJobStructuredResult",
371
432
  "ParsingJobTextResult",
372
433
  "ParsingUsage",
373
434
  "PartitionNames",
@@ -385,7 +446,6 @@ __all__ = [
385
446
  "PipelineCreateEmbeddingConfig_VertexaiEmbedding",
386
447
  "PipelineCreateTransformConfig",
387
448
  "PipelineDataSource",
388
- "PipelineDataSourceComponent",
389
449
  "PipelineDataSourceCreate",
390
450
  "PipelineDataSourceCustomMetadataValue",
391
451
  "PipelineDeployment",
@@ -402,6 +462,7 @@ __all__ = [
402
462
  "PipelineFileCreate",
403
463
  "PipelineFileCreateCustomMetadataValue",
404
464
  "PipelineFileCustomMetadataValue",
465
+ "PipelineFilePermissionInfoValue",
405
466
  "PipelineFileResourceInfoValue",
406
467
  "PipelineFileUpdateCustomMetadataValue",
407
468
  "PipelineTransformConfig",
@@ -417,6 +478,7 @@ __all__ = [
417
478
  "PipelineUpdateEmbeddingConfig_OpenaiEmbedding",
418
479
  "PipelineUpdateEmbeddingConfig_VertexaiEmbedding",
419
480
  "PipelineUpdateTransformConfig",
481
+ "Plan",
420
482
  "PlaygroundSession",
421
483
  "Pooling",
422
484
  "PresetRetrievalParams",
@@ -439,22 +501,26 @@ __all__ = [
439
501
  "TextNode",
440
502
  "TextNodeRelationshipsValue",
441
503
  "TextNodeWithScore",
504
+ "Token",
442
505
  "TokenChunkingConfig",
443
506
  "TokenTextSplitter",
444
507
  "TransformationCategoryNames",
445
508
  "UnprocessableEntityError",
509
+ "Usage",
446
510
  "UserOrganization",
447
511
  "UserOrganizationCreate",
448
512
  "UserOrganizationDelete",
449
513
  "UserOrganizationRole",
450
514
  "ValidationError",
451
515
  "ValidationErrorLocItem",
516
+ "Value",
452
517
  "VertexAiEmbeddingConfig",
453
518
  "VertexEmbeddingMode",
454
519
  "VertexTextEmbedding",
455
520
  "component_definitions",
456
521
  "data_sinks",
457
522
  "data_sources",
523
+ "embedding_model_configs",
458
524
  "evals",
459
525
  "extraction",
460
526
  "files",
llama_cloud/client.py CHANGED
@@ -9,6 +9,7 @@ from .environment import LlamaCloudEnvironment
9
9
  from .resources.component_definitions.client import AsyncComponentDefinitionsClient, ComponentDefinitionsClient
10
10
  from .resources.data_sinks.client import AsyncDataSinksClient, DataSinksClient
11
11
  from .resources.data_sources.client import AsyncDataSourcesClient, DataSourcesClient
12
+ from .resources.embedding_model_configs.client import AsyncEmbeddingModelConfigsClient, EmbeddingModelConfigsClient
12
13
  from .resources.evals.client import AsyncEvalsClient, EvalsClient
13
14
  from .resources.extraction.client import AsyncExtractionClient, ExtractionClient
14
15
  from .resources.files.client import AsyncFilesClient, FilesClient
@@ -35,6 +36,7 @@ class LlamaCloud:
35
36
  )
36
37
  self.data_sinks = DataSinksClient(client_wrapper=self._client_wrapper)
37
38
  self.data_sources = DataSourcesClient(client_wrapper=self._client_wrapper)
39
+ self.embedding_model_configs = EmbeddingModelConfigsClient(client_wrapper=self._client_wrapper)
38
40
  self.organizations = OrganizationsClient(client_wrapper=self._client_wrapper)
39
41
  self.projects = ProjectsClient(client_wrapper=self._client_wrapper)
40
42
  self.files = FilesClient(client_wrapper=self._client_wrapper)
@@ -62,6 +64,7 @@ class AsyncLlamaCloud:
62
64
  )
63
65
  self.data_sinks = AsyncDataSinksClient(client_wrapper=self._client_wrapper)
64
66
  self.data_sources = AsyncDataSourcesClient(client_wrapper=self._client_wrapper)
67
+ self.embedding_model_configs = AsyncEmbeddingModelConfigsClient(client_wrapper=self._client_wrapper)
65
68
  self.organizations = AsyncOrganizationsClient(client_wrapper=self._client_wrapper)
66
69
  self.projects = AsyncProjectsClient(client_wrapper=self._client_wrapper)
67
70
  self.files = AsyncFilesClient(client_wrapper=self._client_wrapper)
@@ -4,4 +4,4 @@ import enum
4
4
 
5
5
 
6
6
  class LlamaCloudEnvironment(enum.Enum):
7
- DEFAULT = "https://api.cloud.llamaindex.ai/"
7
+ DEFAULT = "https://api.cloud.llamaindex.ai"
@@ -4,6 +4,7 @@ from . import (
4
4
  component_definitions,
5
5
  data_sinks,
6
6
  data_sources,
7
+ embedding_model_configs,
7
8
  evals,
8
9
  extraction,
9
10
  files,
@@ -14,8 +15,18 @@ from . import (
14
15
  )
15
16
  from .data_sinks import DataSinkUpdateComponent
16
17
  from .data_sources import DataSourceUpdateComponent, DataSourceUpdateCustomMetadataValue
18
+ from .embedding_model_configs import (
19
+ EmbeddingModelConfigCreateEmbeddingConfig,
20
+ EmbeddingModelConfigCreateEmbeddingConfig_AzureEmbedding,
21
+ EmbeddingModelConfigCreateEmbeddingConfig_BedrockEmbedding,
22
+ EmbeddingModelConfigCreateEmbeddingConfig_CohereEmbedding,
23
+ EmbeddingModelConfigCreateEmbeddingConfig_GeminiEmbedding,
24
+ EmbeddingModelConfigCreateEmbeddingConfig_HuggingfaceApiEmbedding,
25
+ EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding,
26
+ EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding,
27
+ )
17
28
  from .extraction import ExtractionSchemaCreateDataSchemaValue, ExtractionSchemaUpdateDataSchemaValue
18
- from .files import FileCreateResourceInfoValue
29
+ from .files import FileCreateFromUrlResourceInfoValue, FileCreatePermissionInfoValue, FileCreateResourceInfoValue
19
30
  from .pipelines import (
20
31
  PipelineFileUpdateCustomMetadataValue,
21
32
  PipelineUpdateEmbeddingConfig,
@@ -33,8 +44,18 @@ __all__ = [
33
44
  "DataSinkUpdateComponent",
34
45
  "DataSourceUpdateComponent",
35
46
  "DataSourceUpdateCustomMetadataValue",
47
+ "EmbeddingModelConfigCreateEmbeddingConfig",
48
+ "EmbeddingModelConfigCreateEmbeddingConfig_AzureEmbedding",
49
+ "EmbeddingModelConfigCreateEmbeddingConfig_BedrockEmbedding",
50
+ "EmbeddingModelConfigCreateEmbeddingConfig_CohereEmbedding",
51
+ "EmbeddingModelConfigCreateEmbeddingConfig_GeminiEmbedding",
52
+ "EmbeddingModelConfigCreateEmbeddingConfig_HuggingfaceApiEmbedding",
53
+ "EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding",
54
+ "EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding",
36
55
  "ExtractionSchemaCreateDataSchemaValue",
37
56
  "ExtractionSchemaUpdateDataSchemaValue",
57
+ "FileCreateFromUrlResourceInfoValue",
58
+ "FileCreatePermissionInfoValue",
38
59
  "FileCreateResourceInfoValue",
39
60
  "PipelineFileUpdateCustomMetadataValue",
40
61
  "PipelineUpdateEmbeddingConfig",
@@ -49,6 +70,7 @@ __all__ = [
49
70
  "component_definitions",
50
71
  "data_sinks",
51
72
  "data_sources",
73
+ "embedding_model_configs",
52
74
  "evals",
53
75
  "extraction",
54
76
  "files",
@@ -31,13 +31,16 @@ class DataSinksClient:
31
31
  def __init__(self, *, client_wrapper: SyncClientWrapper):
32
32
  self._client_wrapper = client_wrapper
33
33
 
34
- def list_data_sinks(self, *, project_id: typing.Optional[str] = None) -> typing.List[DataSink]:
34
+ def list_data_sinks(
35
+ self, *, project_id: typing.Optional[str] = None, organization_id: typing.Optional[str] = None
36
+ ) -> typing.List[DataSink]:
35
37
  """
36
38
  List data sinks for a given project.
37
- If project_id is not provided, uses the default project.
38
39
 
39
40
  Parameters:
40
41
  - project_id: typing.Optional[str].
42
+
43
+ - organization_id: typing.Optional[str].
41
44
  ---
42
45
  from llama_cloud.client import LlamaCloud
43
46
 
@@ -49,7 +52,7 @@ class DataSinksClient:
49
52
  _response = self._client_wrapper.httpx_client.request(
50
53
  "GET",
51
54
  urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/v1/data-sinks"),
52
- params=remove_none_from_dict({"project_id": project_id}),
55
+ params=remove_none_from_dict({"project_id": project_id, "organization_id": organization_id}),
53
56
  headers=self._client_wrapper.get_headers(),
54
57
  timeout=60,
55
58
  )
@@ -88,7 +91,7 @@ class DataSinksClient:
88
91
  )
89
92
  client.data_sinks.create_data_sink(
90
93
  request=DataSinkCreate(
91
- name="string",
94
+ name="name",
92
95
  sink_type=ConfigurableDataSinkNames.PINECONE,
93
96
  ),
94
97
  )
@@ -137,7 +140,7 @@ class DataSinksClient:
137
140
  )
138
141
  client.data_sinks.upsert_data_sink(
139
142
  request=DataSinkCreate(
140
- name="string",
143
+ name="name",
141
144
  sink_type=ConfigurableDataSinkNames.PINECONE,
142
145
  ),
143
146
  )
@@ -173,7 +176,7 @@ class DataSinksClient:
173
176
  token="YOUR_TOKEN",
174
177
  )
175
178
  client.data_sinks.get_data_sink(
176
- data_sink_id="string",
179
+ data_sink_id="data_sink_id",
177
180
  )
178
181
  """
179
182
  _response = self._client_wrapper.httpx_client.request(
@@ -206,11 +209,11 @@ class DataSinksClient:
206
209
  Parameters:
207
210
  - data_sink_id: str.
208
211
 
209
- - name: typing.Optional[str].
212
+ - name: typing.Optional[str]. The name of the data sink.
210
213
 
211
214
  - sink_type: ConfigurableDataSinkNames.
212
215
 
213
- - component: typing.Optional[DataSinkUpdateComponent].
216
+ - component: typing.Optional[DataSinkUpdateComponent]. Component that implements the data sink
214
217
  ---
215
218
  from llama_cloud import ConfigurableDataSinkNames
216
219
  from llama_cloud.client import LlamaCloud
@@ -219,7 +222,7 @@ class DataSinksClient:
219
222
  token="YOUR_TOKEN",
220
223
  )
221
224
  client.data_sinks.update_data_sink(
222
- data_sink_id="string",
225
+ data_sink_id="data_sink_id",
223
226
  sink_type=ConfigurableDataSinkNames.PINECONE,
224
227
  )
225
228
  """
@@ -258,7 +261,7 @@ class DataSinksClient:
258
261
  token="YOUR_TOKEN",
259
262
  )
260
263
  client.data_sinks.delete_data_sink(
261
- data_sink_id="string",
264
+ data_sink_id="data_sink_id",
262
265
  )
263
266
  """
264
267
  _response = self._client_wrapper.httpx_client.request(
@@ -282,13 +285,16 @@ class AsyncDataSinksClient:
282
285
  def __init__(self, *, client_wrapper: AsyncClientWrapper):
283
286
  self._client_wrapper = client_wrapper
284
287
 
285
- async def list_data_sinks(self, *, project_id: typing.Optional[str] = None) -> typing.List[DataSink]:
288
+ async def list_data_sinks(
289
+ self, *, project_id: typing.Optional[str] = None, organization_id: typing.Optional[str] = None
290
+ ) -> typing.List[DataSink]:
286
291
  """
287
292
  List data sinks for a given project.
288
- If project_id is not provided, uses the default project.
289
293
 
290
294
  Parameters:
291
295
  - project_id: typing.Optional[str].
296
+
297
+ - organization_id: typing.Optional[str].
292
298
  ---
293
299
  from llama_cloud.client import AsyncLlamaCloud
294
300
 
@@ -300,7 +306,7 @@ class AsyncDataSinksClient:
300
306
  _response = await self._client_wrapper.httpx_client.request(
301
307
  "GET",
302
308
  urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/v1/data-sinks"),
303
- params=remove_none_from_dict({"project_id": project_id}),
309
+ params=remove_none_from_dict({"project_id": project_id, "organization_id": organization_id}),
304
310
  headers=self._client_wrapper.get_headers(),
305
311
  timeout=60,
306
312
  )
@@ -339,7 +345,7 @@ class AsyncDataSinksClient:
339
345
  )
340
346
  await client.data_sinks.create_data_sink(
341
347
  request=DataSinkCreate(
342
- name="string",
348
+ name="name",
343
349
  sink_type=ConfigurableDataSinkNames.PINECONE,
344
350
  ),
345
351
  )
@@ -388,7 +394,7 @@ class AsyncDataSinksClient:
388
394
  )
389
395
  await client.data_sinks.upsert_data_sink(
390
396
  request=DataSinkCreate(
391
- name="string",
397
+ name="name",
392
398
  sink_type=ConfigurableDataSinkNames.PINECONE,
393
399
  ),
394
400
  )
@@ -424,7 +430,7 @@ class AsyncDataSinksClient:
424
430
  token="YOUR_TOKEN",
425
431
  )
426
432
  await client.data_sinks.get_data_sink(
427
- data_sink_id="string",
433
+ data_sink_id="data_sink_id",
428
434
  )
429
435
  """
430
436
  _response = await self._client_wrapper.httpx_client.request(
@@ -457,11 +463,11 @@ class AsyncDataSinksClient:
457
463
  Parameters:
458
464
  - data_sink_id: str.
459
465
 
460
- - name: typing.Optional[str].
466
+ - name: typing.Optional[str]. The name of the data sink.
461
467
 
462
468
  - sink_type: ConfigurableDataSinkNames.
463
469
 
464
- - component: typing.Optional[DataSinkUpdateComponent].
470
+ - component: typing.Optional[DataSinkUpdateComponent]. Component that implements the data sink
465
471
  ---
466
472
  from llama_cloud import ConfigurableDataSinkNames
467
473
  from llama_cloud.client import AsyncLlamaCloud
@@ -470,7 +476,7 @@ class AsyncDataSinksClient:
470
476
  token="YOUR_TOKEN",
471
477
  )
472
478
  await client.data_sinks.update_data_sink(
473
- data_sink_id="string",
479
+ data_sink_id="data_sink_id",
474
480
  sink_type=ConfigurableDataSinkNames.PINECONE,
475
481
  )
476
482
  """
@@ -509,7 +515,7 @@ class AsyncDataSinksClient:
509
515
  token="YOUR_TOKEN",
510
516
  )
511
517
  await client.data_sinks.delete_data_sink(
512
- data_sink_id="string",
518
+ data_sink_id="data_sink_id",
513
519
  )
514
520
  """
515
521
  _response = await self._client_wrapper.httpx_client.request(
@@ -93,7 +93,7 @@ class DataSourcesClient:
93
93
  )
94
94
  client.data_sources.create_data_source(
95
95
  request=DataSourceCreate(
96
- name="string",
96
+ name="name",
97
97
  source_type=ConfigurableDataSourceNames.S_3,
98
98
  ),
99
99
  )
@@ -142,7 +142,7 @@ class DataSourcesClient:
142
142
  )
143
143
  client.data_sources.upsert_data_source(
144
144
  request=DataSourceCreate(
145
- name="string",
145
+ name="name",
146
146
  source_type=ConfigurableDataSourceNames.S_3,
147
147
  ),
148
148
  )
@@ -178,7 +178,7 @@ class DataSourcesClient:
178
178
  token="YOUR_TOKEN",
179
179
  )
180
180
  client.data_sources.get_data_source(
181
- data_source_id="string",
181
+ data_source_id="data_source_id",
182
182
  )
183
183
  """
184
184
  _response = self._client_wrapper.httpx_client.request(
@@ -212,13 +212,13 @@ class DataSourcesClient:
212
212
  Parameters:
213
213
  - data_source_id: str.
214
214
 
215
- - name: typing.Optional[str].
215
+ - name: typing.Optional[str]. The name of the data source.
216
216
 
217
217
  - source_type: ConfigurableDataSourceNames.
218
218
 
219
- - custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[DataSourceUpdateCustomMetadataValue]]].
219
+ - custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[DataSourceUpdateCustomMetadataValue]]]. Custom metadata that will be present on all data loaded from the data source
220
220
 
221
- - component: typing.Optional[DataSourceUpdateComponent].
221
+ - component: typing.Optional[DataSourceUpdateComponent]. Component that implements the data source
222
222
  ---
223
223
  from llama_cloud import ConfigurableDataSourceNames
224
224
  from llama_cloud.client import LlamaCloud
@@ -227,7 +227,7 @@ class DataSourcesClient:
227
227
  token="YOUR_TOKEN",
228
228
  )
229
229
  client.data_sources.update_data_source(
230
- data_source_id="string",
230
+ data_source_id="data_source_id",
231
231
  source_type=ConfigurableDataSourceNames.S_3,
232
232
  )
233
233
  """
@@ -268,7 +268,7 @@ class DataSourcesClient:
268
268
  token="YOUR_TOKEN",
269
269
  )
270
270
  client.data_sources.delete_data_source(
271
- data_source_id="string",
271
+ data_source_id="data_source_id",
272
272
  )
273
273
  """
274
274
  _response = self._client_wrapper.httpx_client.request(
@@ -353,7 +353,7 @@ class AsyncDataSourcesClient:
353
353
  )
354
354
  await client.data_sources.create_data_source(
355
355
  request=DataSourceCreate(
356
- name="string",
356
+ name="name",
357
357
  source_type=ConfigurableDataSourceNames.S_3,
358
358
  ),
359
359
  )
@@ -402,7 +402,7 @@ class AsyncDataSourcesClient:
402
402
  )
403
403
  await client.data_sources.upsert_data_source(
404
404
  request=DataSourceCreate(
405
- name="string",
405
+ name="name",
406
406
  source_type=ConfigurableDataSourceNames.S_3,
407
407
  ),
408
408
  )
@@ -438,7 +438,7 @@ class AsyncDataSourcesClient:
438
438
  token="YOUR_TOKEN",
439
439
  )
440
440
  await client.data_sources.get_data_source(
441
- data_source_id="string",
441
+ data_source_id="data_source_id",
442
442
  )
443
443
  """
444
444
  _response = await self._client_wrapper.httpx_client.request(
@@ -472,13 +472,13 @@ class AsyncDataSourcesClient:
472
472
  Parameters:
473
473
  - data_source_id: str.
474
474
 
475
- - name: typing.Optional[str].
475
+ - name: typing.Optional[str]. The name of the data source.
476
476
 
477
477
  - source_type: ConfigurableDataSourceNames.
478
478
 
479
- - custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[DataSourceUpdateCustomMetadataValue]]].
479
+ - custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[DataSourceUpdateCustomMetadataValue]]]. Custom metadata that will be present on all data loaded from the data source
480
480
 
481
- - component: typing.Optional[DataSourceUpdateComponent].
481
+ - component: typing.Optional[DataSourceUpdateComponent]. Component that implements the data source
482
482
  ---
483
483
  from llama_cloud import ConfigurableDataSourceNames
484
484
  from llama_cloud.client import AsyncLlamaCloud
@@ -487,7 +487,7 @@ class AsyncDataSourcesClient:
487
487
  token="YOUR_TOKEN",
488
488
  )
489
489
  await client.data_sources.update_data_source(
490
- data_source_id="string",
490
+ data_source_id="data_source_id",
491
491
  source_type=ConfigurableDataSourceNames.S_3,
492
492
  )
493
493
  """
@@ -528,7 +528,7 @@ class AsyncDataSourcesClient:
528
528
  token="YOUR_TOKEN",
529
529
  )
530
530
  await client.data_sources.delete_data_source(
531
- data_source_id="string",
531
+ data_source_id="data_source_id",
532
532
  )
533
533
  """
534
534
  _response = await self._client_wrapper.httpx_client.request(
@@ -0,0 +1,23 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from .types import (
4
+ EmbeddingModelConfigCreateEmbeddingConfig,
5
+ EmbeddingModelConfigCreateEmbeddingConfig_AzureEmbedding,
6
+ EmbeddingModelConfigCreateEmbeddingConfig_BedrockEmbedding,
7
+ EmbeddingModelConfigCreateEmbeddingConfig_CohereEmbedding,
8
+ EmbeddingModelConfigCreateEmbeddingConfig_GeminiEmbedding,
9
+ EmbeddingModelConfigCreateEmbeddingConfig_HuggingfaceApiEmbedding,
10
+ EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding,
11
+ EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding,
12
+ )
13
+
14
+ __all__ = [
15
+ "EmbeddingModelConfigCreateEmbeddingConfig",
16
+ "EmbeddingModelConfigCreateEmbeddingConfig_AzureEmbedding",
17
+ "EmbeddingModelConfigCreateEmbeddingConfig_BedrockEmbedding",
18
+ "EmbeddingModelConfigCreateEmbeddingConfig_CohereEmbedding",
19
+ "EmbeddingModelConfigCreateEmbeddingConfig_GeminiEmbedding",
20
+ "EmbeddingModelConfigCreateEmbeddingConfig_HuggingfaceApiEmbedding",
21
+ "EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding",
22
+ "EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding",
23
+ ]