llama-cloud 0.0.7__py3-none-any.whl → 0.0.8__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.
- llama_cloud/__init__.py +18 -4
- llama_cloud/client.py +3 -0
- llama_cloud/resources/__init__.py +4 -1
- llama_cloud/resources/data_sinks/types/data_sink_update_component_one.py +2 -0
- llama_cloud/resources/data_sources/types/data_source_update_component_one.py +4 -4
- llama_cloud/resources/extraction/__init__.py +5 -0
- llama_cloud/resources/extraction/client.py +648 -0
- llama_cloud/resources/extraction/types/__init__.py +5 -0
- llama_cloud/resources/extraction/types/extraction_schema_update_data_schema_value.py +7 -0
- llama_cloud/resources/pipelines/client.py +146 -2
- llama_cloud/types/__init__.py +14 -4
- llama_cloud/types/azure_open_ai_embedding.py +3 -0
- llama_cloud/types/{cloud_gcs_data_source.py → cloud_azure_ai_search_vector_store.py} +9 -7
- llama_cloud/types/{cloud_google_drive_data_source.py → cloud_notion_page_data_source.py} +4 -5
- llama_cloud/types/cloud_slack_data_source.py +42 -0
- llama_cloud/types/configurable_data_sink_names.py +4 -0
- llama_cloud/types/configurable_data_source_names.py +8 -8
- llama_cloud/types/data_sink_component_one.py +2 -0
- llama_cloud/types/data_sink_create_component_one.py +2 -0
- llama_cloud/types/data_source_component_one.py +4 -4
- llama_cloud/types/data_source_create_component_one.py +4 -4
- llama_cloud/types/extraction_result.py +42 -0
- llama_cloud/types/extraction_result_data_value.py +5 -0
- llama_cloud/types/extraction_schema.py +44 -0
- llama_cloud/types/extraction_schema_data_schema_value.py +7 -0
- llama_cloud/types/pipeline_data_source_component_one.py +4 -4
- llama_cloud/types/text_node.py +1 -0
- {llama_cloud-0.0.7.dist-info → llama_cloud-0.0.8.dist-info}/METADATA +1 -2
- {llama_cloud-0.0.7.dist-info → llama_cloud-0.0.8.dist-info}/RECORD +31 -22
- {llama_cloud-0.0.7.dist-info → llama_cloud-0.0.8.dist-info}/WHEEL +1 -1
- {llama_cloud-0.0.7.dist-info → llama_cloud-0.0.8.dist-info}/LICENSE +0 -0
llama_cloud/__init__.py
CHANGED
|
@@ -7,17 +7,18 @@ from .types import (
|
|
|
7
7
|
BedrockEmbedding,
|
|
8
8
|
ChatMessage,
|
|
9
9
|
CloudAzStorageBlobDataSource,
|
|
10
|
+
CloudAzureAiSearchVectorStore,
|
|
10
11
|
CloudChromaVectorStore,
|
|
11
12
|
CloudDocument,
|
|
12
13
|
CloudDocumentCreate,
|
|
13
|
-
|
|
14
|
-
CloudGoogleDriveDataSource,
|
|
14
|
+
CloudNotionPageDataSource,
|
|
15
15
|
CloudOneDriveDataSource,
|
|
16
16
|
CloudPineconeVectorStore,
|
|
17
17
|
CloudPostgresVectorStore,
|
|
18
18
|
CloudQdrantVectorStore,
|
|
19
19
|
CloudS3DataSource,
|
|
20
20
|
CloudSharepointDataSource,
|
|
21
|
+
CloudSlackDataSource,
|
|
21
22
|
CloudWeaviateVectorStore,
|
|
22
23
|
CodeSplitter,
|
|
23
24
|
CohereEmbedding,
|
|
@@ -53,6 +54,10 @@ from .types import (
|
|
|
53
54
|
EvalQuestion,
|
|
54
55
|
EvalQuestionCreate,
|
|
55
56
|
EvalQuestionResult,
|
|
57
|
+
ExtractionResult,
|
|
58
|
+
ExtractionResultDataValue,
|
|
59
|
+
ExtractionSchema,
|
|
60
|
+
ExtractionSchemaDataSchemaValue,
|
|
56
61
|
File,
|
|
57
62
|
FileResourceInfoValue,
|
|
58
63
|
FilterCondition,
|
|
@@ -133,12 +138,14 @@ from .resources import (
|
|
|
133
138
|
DataSourceUpdateComponent,
|
|
134
139
|
DataSourceUpdateComponentOne,
|
|
135
140
|
DataSourceUpdateCustomMetadataValue,
|
|
141
|
+
ExtractionSchemaUpdateDataSchemaValue,
|
|
136
142
|
FileCreateResourceInfoValue,
|
|
137
143
|
PipelineFileUpdateCustomMetadataValue,
|
|
138
144
|
component_definitions,
|
|
139
145
|
data_sinks,
|
|
140
146
|
data_sources,
|
|
141
147
|
evals,
|
|
148
|
+
extraction,
|
|
142
149
|
files,
|
|
143
150
|
parsing,
|
|
144
151
|
pipelines,
|
|
@@ -153,17 +160,18 @@ __all__ = [
|
|
|
153
160
|
"BedrockEmbedding",
|
|
154
161
|
"ChatMessage",
|
|
155
162
|
"CloudAzStorageBlobDataSource",
|
|
163
|
+
"CloudAzureAiSearchVectorStore",
|
|
156
164
|
"CloudChromaVectorStore",
|
|
157
165
|
"CloudDocument",
|
|
158
166
|
"CloudDocumentCreate",
|
|
159
|
-
"
|
|
160
|
-
"CloudGoogleDriveDataSource",
|
|
167
|
+
"CloudNotionPageDataSource",
|
|
161
168
|
"CloudOneDriveDataSource",
|
|
162
169
|
"CloudPineconeVectorStore",
|
|
163
170
|
"CloudPostgresVectorStore",
|
|
164
171
|
"CloudQdrantVectorStore",
|
|
165
172
|
"CloudS3DataSource",
|
|
166
173
|
"CloudSharepointDataSource",
|
|
174
|
+
"CloudSlackDataSource",
|
|
167
175
|
"CloudWeaviateVectorStore",
|
|
168
176
|
"CodeSplitter",
|
|
169
177
|
"CohereEmbedding",
|
|
@@ -204,6 +212,11 @@ __all__ = [
|
|
|
204
212
|
"EvalQuestion",
|
|
205
213
|
"EvalQuestionCreate",
|
|
206
214
|
"EvalQuestionResult",
|
|
215
|
+
"ExtractionResult",
|
|
216
|
+
"ExtractionResultDataValue",
|
|
217
|
+
"ExtractionSchema",
|
|
218
|
+
"ExtractionSchemaDataSchemaValue",
|
|
219
|
+
"ExtractionSchemaUpdateDataSchemaValue",
|
|
207
220
|
"File",
|
|
208
221
|
"FileCreateResourceInfoValue",
|
|
209
222
|
"FileResourceInfoValue",
|
|
@@ -284,6 +297,7 @@ __all__ = [
|
|
|
284
297
|
"data_sinks",
|
|
285
298
|
"data_sources",
|
|
286
299
|
"evals",
|
|
300
|
+
"extraction",
|
|
287
301
|
"files",
|
|
288
302
|
"parsing",
|
|
289
303
|
"pipelines",
|
llama_cloud/client.py
CHANGED
|
@@ -10,6 +10,7 @@ from .resources.component_definitions.client import AsyncComponentDefinitionsCli
|
|
|
10
10
|
from .resources.data_sinks.client import AsyncDataSinksClient, DataSinksClient
|
|
11
11
|
from .resources.data_sources.client import AsyncDataSourcesClient, DataSourcesClient
|
|
12
12
|
from .resources.evals.client import AsyncEvalsClient, EvalsClient
|
|
13
|
+
from .resources.extraction.client import AsyncExtractionClient, ExtractionClient
|
|
13
14
|
from .resources.files.client import AsyncFilesClient, FilesClient
|
|
14
15
|
from .resources.parsing.client import AsyncParsingClient, ParsingClient
|
|
15
16
|
from .resources.pipelines.client import AsyncPipelinesClient, PipelinesClient
|
|
@@ -39,6 +40,7 @@ class LlamaCloud:
|
|
|
39
40
|
self.evals = EvalsClient(client_wrapper=self._client_wrapper)
|
|
40
41
|
self.parsing = ParsingClient(client_wrapper=self._client_wrapper)
|
|
41
42
|
self.component_definitions = ComponentDefinitionsClient(client_wrapper=self._client_wrapper)
|
|
43
|
+
self.extraction = ExtractionClient(client_wrapper=self._client_wrapper)
|
|
42
44
|
|
|
43
45
|
|
|
44
46
|
class AsyncLlamaCloud:
|
|
@@ -64,6 +66,7 @@ class AsyncLlamaCloud:
|
|
|
64
66
|
self.evals = AsyncEvalsClient(client_wrapper=self._client_wrapper)
|
|
65
67
|
self.parsing = AsyncParsingClient(client_wrapper=self._client_wrapper)
|
|
66
68
|
self.component_definitions = AsyncComponentDefinitionsClient(client_wrapper=self._client_wrapper)
|
|
69
|
+
self.extraction = AsyncExtractionClient(client_wrapper=self._client_wrapper)
|
|
67
70
|
|
|
68
71
|
|
|
69
72
|
def _get_base_url(*, base_url: typing.Optional[str] = None, environment: LlamaCloudEnvironment) -> str:
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from . import component_definitions, data_sinks, data_sources, evals, files, parsing, pipelines, projects
|
|
3
|
+
from . import component_definitions, data_sinks, data_sources, evals, extraction, files, parsing, pipelines, projects
|
|
4
4
|
from .data_sinks import DataSinkUpdateComponent, DataSinkUpdateComponentOne
|
|
5
5
|
from .data_sources import DataSourceUpdateComponent, DataSourceUpdateComponentOne, DataSourceUpdateCustomMetadataValue
|
|
6
|
+
from .extraction import ExtractionSchemaUpdateDataSchemaValue
|
|
6
7
|
from .files import FileCreateResourceInfoValue
|
|
7
8
|
from .pipelines import PipelineFileUpdateCustomMetadataValue
|
|
8
9
|
|
|
@@ -12,12 +13,14 @@ __all__ = [
|
|
|
12
13
|
"DataSourceUpdateComponent",
|
|
13
14
|
"DataSourceUpdateComponentOne",
|
|
14
15
|
"DataSourceUpdateCustomMetadataValue",
|
|
16
|
+
"ExtractionSchemaUpdateDataSchemaValue",
|
|
15
17
|
"FileCreateResourceInfoValue",
|
|
16
18
|
"PipelineFileUpdateCustomMetadataValue",
|
|
17
19
|
"component_definitions",
|
|
18
20
|
"data_sinks",
|
|
19
21
|
"data_sources",
|
|
20
22
|
"evals",
|
|
23
|
+
"extraction",
|
|
21
24
|
"files",
|
|
22
25
|
"parsing",
|
|
23
26
|
"pipelines",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
4
|
|
|
5
|
+
from ....types.cloud_azure_ai_search_vector_store import CloudAzureAiSearchVectorStore
|
|
5
6
|
from ....types.cloud_chroma_vector_store import CloudChromaVectorStore
|
|
6
7
|
from ....types.cloud_pinecone_vector_store import CloudPineconeVectorStore
|
|
7
8
|
from ....types.cloud_postgres_vector_store import CloudPostgresVectorStore
|
|
@@ -14,4 +15,5 @@ DataSinkUpdateComponentOne = typing.Union[
|
|
|
14
15
|
CloudPostgresVectorStore,
|
|
15
16
|
CloudQdrantVectorStore,
|
|
16
17
|
CloudWeaviateVectorStore,
|
|
18
|
+
CloudAzureAiSearchVectorStore,
|
|
17
19
|
]
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import typing
|
|
4
4
|
|
|
5
5
|
from ....types.cloud_az_storage_blob_data_source import CloudAzStorageBlobDataSource
|
|
6
|
-
from ....types.
|
|
7
|
-
from ....types.cloud_google_drive_data_source import CloudGoogleDriveDataSource
|
|
6
|
+
from ....types.cloud_notion_page_data_source import CloudNotionPageDataSource
|
|
8
7
|
from ....types.cloud_one_drive_data_source import CloudOneDriveDataSource
|
|
9
8
|
from ....types.cloud_s_3_data_source import CloudS3DataSource
|
|
10
9
|
from ....types.cloud_sharepoint_data_source import CloudSharepointDataSource
|
|
10
|
+
from ....types.cloud_slack_data_source import CloudSlackDataSource
|
|
11
11
|
|
|
12
12
|
DataSourceUpdateComponentOne = typing.Union[
|
|
13
13
|
CloudS3DataSource,
|
|
14
14
|
CloudAzStorageBlobDataSource,
|
|
15
|
-
CloudGcsDataSource,
|
|
16
|
-
CloudGoogleDriveDataSource,
|
|
17
15
|
CloudOneDriveDataSource,
|
|
18
16
|
CloudSharepointDataSource,
|
|
17
|
+
CloudSlackDataSource,
|
|
18
|
+
CloudNotionPageDataSource,
|
|
19
19
|
]
|