mixpeek 0.15.0__py3-none-any.whl → 0.15.1__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.
- mixpeek/_version.py +1 -1
- mixpeek/assets.py +8 -8
- mixpeek/collections.py +4 -4
- mixpeek/featureextractors.py +6 -6
- mixpeek/features.py +20 -20
- mixpeek/ingest.py +12 -54
- mixpeek/models/__init__.py +27 -108
- mixpeek/models/assetresponse.py +4 -4
- mixpeek/models/availableindexesresponse.py +2 -2
- mixpeek/models/availablemodels.py +4 -0
- mixpeek/models/createnamespacerequest.py +4 -4
- mixpeek/models/embeddingrequest.py +2 -2
- mixpeek/models/entitysettings.py +50 -0
- mixpeek/models/featureextractionembeddingrequest.py +2 -2
- mixpeek/models/imagedescribesettings.py +6 -6
- mixpeek/models/imagereadsettings.py +6 -6
- mixpeek/models/imagesettings.py +17 -4
- mixpeek/models/listassetsrequest.py +3 -3
- mixpeek/models/listfeaturesrequest.py +3 -3
- mixpeek/models/{logicaloperator_input.py → logicaloperator.py} +8 -8
- mixpeek/models/namespaceresponse.py +2 -2
- mixpeek/models/processimageurlinput.py +1 -13
- mixpeek/models/processtextinput.py +1 -13
- mixpeek/models/processvideourlinput.py +1 -13
- mixpeek/models/search_features_features_search_postop.py +4 -7
- mixpeek/models/{search_model_searchquery_input.py → search_model_searchquery.py} +7 -7
- mixpeek/models/searchassetsrequest.py +3 -3
- mixpeek/models/{searchrequestfeatures_output.py → searchrequestfeatures.py} +11 -11
- mixpeek/models/{percolaterequest.py → taskresponse.py} +15 -17
- mixpeek/models/taskstatus.py +1 -0
- mixpeek/models/taxonomyextractionconfig.py +31 -0
- mixpeek/models/textsettings.py +10 -4
- mixpeek/models/vectormodel.py +4 -0
- mixpeek/models/videodescribesettings.py +6 -6
- mixpeek/models/videoreadsettings.py +6 -6
- mixpeek/models/videosettings.py +17 -3
- mixpeek/models/videotranscriptionsettings.py +6 -6
- mixpeek/namespaces.py +6 -6
- mixpeek/sdk.py +0 -6
- mixpeek/sdkconfiguration.py +2 -2
- mixpeek/tasks.py +4 -4
- {mixpeek-0.15.0.dist-info → mixpeek-0.15.1.dist-info}/METADATA +1 -11
- {mixpeek-0.15.0.dist-info → mixpeek-0.15.1.dist-info}/RECORD +44 -56
- mixpeek/interactions.py +0 -228
- mixpeek/models/create_interaction_features_search_interactions_postop.py +0 -59
- mixpeek/models/db_model_taskresponse.py +0 -20
- mixpeek/models/delete_interaction_features_search_interactions_interaction_id_deleteop.py +0 -59
- mixpeek/models/get_interaction_features_search_interactions_interaction_id_getop.py +0 -59
- mixpeek/models/interactionresponse.py +0 -87
- mixpeek/models/interactiontype.py +0 -11
- mixpeek/models/list_interactions_features_search_interactions_getop.py +0 -96
- mixpeek/models/logicaloperator_output.py +0 -103
- mixpeek/models/searchinteraction.py +0 -82
- mixpeek/models/searchquery_output.py +0 -79
- mixpeek/models/searchrequestfeatures_input.py +0 -151
- mixpeek/models/tasks_model_taskresponse.py +0 -24
- mixpeek/searchinteractions.py +0 -666
- {mixpeek-0.15.0.dist-info → mixpeek-0.15.1.dist-info}/WHEEL +0 -0
mixpeek/models/__init__.py
CHANGED
@@ -7,11 +7,11 @@ from .apikeyupdate import APIKeyUpdate, APIKeyUpdateTypedDict
|
|
7
7
|
from .assetfeatures import AssetFeatures, AssetFeaturesTypedDict
|
8
8
|
from .assetresponse import (
|
9
9
|
AssetResponse,
|
10
|
-
AssetResponseMetadata,
|
11
|
-
AssetResponseMetadataTypedDict,
|
12
10
|
AssetResponseTypedDict,
|
13
11
|
FileData,
|
14
12
|
FileDataTypedDict,
|
13
|
+
Metadata,
|
14
|
+
MetadataTypedDict,
|
15
15
|
)
|
16
16
|
from .assets_model_searchquery import (
|
17
17
|
AssetsModelSearchQuery,
|
@@ -44,10 +44,6 @@ from .create_collection_collections_postop import (
|
|
44
44
|
CreateCollectionCollectionsPostRequest,
|
45
45
|
CreateCollectionCollectionsPostRequestTypedDict,
|
46
46
|
)
|
47
|
-
from .create_interaction_features_search_interactions_postop import (
|
48
|
-
CreateInteractionFeaturesSearchInteractionsPostRequest,
|
49
|
-
CreateInteractionFeaturesSearchInteractionsPostRequestTypedDict,
|
50
|
-
)
|
51
47
|
from .createcollectionrequest import (
|
52
48
|
CreateCollectionRequest,
|
53
49
|
CreateCollectionRequestMetadata,
|
@@ -64,7 +60,6 @@ from .db_model_paginationresponse import (
|
|
64
60
|
DbModelPaginationResponse,
|
65
61
|
DbModelPaginationResponseTypedDict,
|
66
62
|
)
|
67
|
-
from .db_model_taskresponse import DbModelTaskResponse, DbModelTaskResponseTypedDict
|
68
63
|
from .delete_api_key_organizations_users_user_email_api_keys_key_name_deleteop import (
|
69
64
|
DeleteAPIKeyOrganizationsUsersUserEmailAPIKeysKeyNameDeleteRequest,
|
70
65
|
DeleteAPIKeyOrganizationsUsersUserEmailAPIKeysKeyNameDeleteRequestTypedDict,
|
@@ -81,10 +76,6 @@ from .delete_feature_features_feature_id_deleteop import (
|
|
81
76
|
DeleteFeatureFeaturesFeatureIDDeleteRequest,
|
82
77
|
DeleteFeatureFeaturesFeatureIDDeleteRequestTypedDict,
|
83
78
|
)
|
84
|
-
from .delete_interaction_features_search_interactions_interaction_id_deleteop import (
|
85
|
-
DeleteInteractionFeaturesSearchInteractionsInteractionIDDeleteRequest,
|
86
|
-
DeleteInteractionFeaturesSearchInteractionsInteractionIDDeleteRequestTypedDict,
|
87
|
-
)
|
88
79
|
from .delete_namespace_namespaces_namespace_deleteop import (
|
89
80
|
DeleteNamespaceNamespacesNamespaceDeleteRequest,
|
90
81
|
DeleteNamespaceNamespacesNamespaceDeleteRequestTypedDict,
|
@@ -101,6 +92,7 @@ from .embeddingresponse import (
|
|
101
92
|
EmbeddingResponseTypedDict,
|
102
93
|
EmbeddingTypedDict,
|
103
94
|
)
|
95
|
+
from .entitysettings import EntitySettings, EntitySettingsTypedDict
|
104
96
|
from .errordetail import Details, DetailsTypedDict, ErrorDetail, ErrorDetailTypedDict
|
105
97
|
from .errorresponse import ErrorResponse, ErrorResponseData
|
106
98
|
from .facedetectsettings import FaceDetectSettings, FaceDetectSettingsTypedDict
|
@@ -146,10 +138,6 @@ from .get_feature_features_feature_id_getop import (
|
|
146
138
|
GetFeatureFeaturesFeatureIDGetRequest,
|
147
139
|
GetFeatureFeaturesFeatureIDGetRequestTypedDict,
|
148
140
|
)
|
149
|
-
from .get_interaction_features_search_interactions_interaction_id_getop import (
|
150
|
-
GetInteractionFeaturesSearchInteractionsInteractionIDGetRequest,
|
151
|
-
GetInteractionFeaturesSearchInteractionsInteractionIDGetRequestTypedDict,
|
152
|
-
)
|
153
141
|
from .get_namespace_namespaces_namespace_getop import (
|
154
142
|
GetNamespaceNamespacesNamespaceGetRequest,
|
155
143
|
GetNamespaceNamespacesNamespaceGetRequestTypedDict,
|
@@ -195,13 +183,6 @@ from .ingest_video_url_ingest_videos_url_postop import (
|
|
195
183
|
)
|
196
184
|
from .inputtype import InputType
|
197
185
|
from .integerindexparams import IntegerIndexParams, IntegerIndexParamsTypedDict
|
198
|
-
from .interactionresponse import (
|
199
|
-
InteractionResponse,
|
200
|
-
InteractionResponseMetadata,
|
201
|
-
InteractionResponseMetadataTypedDict,
|
202
|
-
InteractionResponseTypedDict,
|
203
|
-
)
|
204
|
-
from .interactiontype import InteractionType
|
205
186
|
from .jsonimageoutputsettings import (
|
206
187
|
JSONImageOutputSettings,
|
207
188
|
JSONImageOutputSettingsResponseShape,
|
@@ -237,10 +218,6 @@ from .list_features_features_postop import (
|
|
237
218
|
ListFeaturesFeaturesPostRequest,
|
238
219
|
ListFeaturesFeaturesPostRequestTypedDict,
|
239
220
|
)
|
240
|
-
from .list_interactions_features_search_interactions_getop import (
|
241
|
-
ListInteractionsFeaturesSearchInteractionsGetRequest,
|
242
|
-
ListInteractionsFeaturesSearchInteractionsGetRequestTypedDict,
|
243
|
-
)
|
244
221
|
from .listassetsrequest import ListAssetsRequest, ListAssetsRequestTypedDict
|
245
222
|
from .listassetsresponse import ListAssetsResponse, ListAssetsResponseTypedDict
|
246
223
|
from .listcollectionsresponse import (
|
@@ -249,26 +226,16 @@ from .listcollectionsresponse import (
|
|
249
226
|
)
|
250
227
|
from .listfeaturesrequest import ListFeaturesRequest, ListFeaturesRequestTypedDict
|
251
228
|
from .listfeaturesresponse import ListFeaturesResponse, ListFeaturesResponseTypedDict
|
252
|
-
from .
|
229
|
+
from .logicaloperator import (
|
253
230
|
And,
|
254
231
|
AndTypedDict,
|
255
|
-
|
256
|
-
|
232
|
+
LogicalOperator,
|
233
|
+
LogicalOperatorTypedDict,
|
257
234
|
Nor,
|
258
235
|
NorTypedDict,
|
259
236
|
Or,
|
260
237
|
OrTypedDict,
|
261
238
|
)
|
262
|
-
from .logicaloperator_output import (
|
263
|
-
LogicalOperatorOutput,
|
264
|
-
LogicalOperatorOutputAND,
|
265
|
-
LogicalOperatorOutputANDTypedDict,
|
266
|
-
LogicalOperatorOutputNOR,
|
267
|
-
LogicalOperatorOutputNORTypedDict,
|
268
|
-
LogicalOperatorOutputOR,
|
269
|
-
LogicalOperatorOutputORTypedDict,
|
270
|
-
LogicalOperatorOutputTypedDict,
|
271
|
-
)
|
272
239
|
from .logodetectsettings import LogoDetectSettings, LogoDetectSettingsTypedDict
|
273
240
|
from .modality import Modality
|
274
241
|
from .modeldetails import ModelDetails, ModelDetailsTypedDict
|
@@ -291,7 +258,6 @@ from .payloadindexconfig import (
|
|
291
258
|
)
|
292
259
|
from .payloadindextype import PayloadIndexType, PayloadIndexTypeTypedDict
|
293
260
|
from .payloadschematype import PayloadSchemaType
|
294
|
-
from .percolaterequest import PercolateRequest, PercolateRequestTypedDict
|
295
261
|
from .permission import Permission
|
296
262
|
from .processimageurlinput import (
|
297
263
|
ProcessImageURLInput,
|
@@ -323,39 +289,22 @@ from .search_features_features_search_postop import (
|
|
323
289
|
SearchFeaturesFeaturesSearchPostResponseSearchFeaturesFeaturesSearchPost,
|
324
290
|
SearchFeaturesFeaturesSearchPostResponseSearchFeaturesFeaturesSearchPostTypedDict,
|
325
291
|
)
|
326
|
-
from .
|
327
|
-
|
328
|
-
|
292
|
+
from .search_model_searchquery import (
|
293
|
+
SearchModelSearchQuery,
|
294
|
+
SearchModelSearchQueryTypedDict,
|
329
295
|
Type,
|
330
296
|
)
|
331
297
|
from .searchassetsrequest import SearchAssetsRequest, SearchAssetsRequestTypedDict
|
332
|
-
from .
|
333
|
-
Metadata,
|
334
|
-
MetadataTypedDict,
|
335
|
-
SearchInteraction,
|
336
|
-
SearchInteractionTypedDict,
|
337
|
-
)
|
338
|
-
from .searchquery_output import (
|
339
|
-
SearchQueryOutput,
|
340
|
-
SearchQueryOutputType,
|
341
|
-
SearchQueryOutputTypedDict,
|
342
|
-
)
|
343
|
-
from .searchrequestfeatures_input import (
|
344
|
-
SearchRequestFeaturesInput,
|
345
|
-
SearchRequestFeaturesInputTypedDict,
|
346
|
-
)
|
347
|
-
from .searchrequestfeatures_output import (
|
348
|
-
SearchRequestFeaturesOutput,
|
349
|
-
SearchRequestFeaturesOutputTypedDict,
|
350
|
-
)
|
298
|
+
from .searchrequestfeatures import SearchRequestFeatures, SearchRequestFeaturesTypedDict
|
351
299
|
from .security import Security, SecurityTypedDict
|
352
300
|
from .sortoption import Direction, SortOption, SortOptionTypedDict
|
353
301
|
from .sparseembedding import SparseEmbedding, SparseEmbeddingTypedDict
|
354
|
-
from .
|
355
|
-
TasksModelTaskResponse,
|
356
|
-
TasksModelTaskResponseTypedDict,
|
357
|
-
)
|
302
|
+
from .taskresponse import TaskResponse, TaskResponseTypedDict
|
358
303
|
from .taskstatus import TaskStatus
|
304
|
+
from .taxonomyextractionconfig import (
|
305
|
+
TaxonomyExtractionConfig,
|
306
|
+
TaxonomyExtractionConfigTypedDict,
|
307
|
+
)
|
359
308
|
from .textindexparams import TextIndexParams, TextIndexParamsTypedDict
|
360
309
|
from .textsettings import TextSettings, TextSettingsTypedDict
|
361
310
|
from .tokenizertype import TokenizerType
|
@@ -437,8 +386,6 @@ __all__ = [
|
|
437
386
|
"AssetFeatures",
|
438
387
|
"AssetFeaturesTypedDict",
|
439
388
|
"AssetResponse",
|
440
|
-
"AssetResponseMetadata",
|
441
|
-
"AssetResponseMetadataTypedDict",
|
442
389
|
"AssetResponseTypedDict",
|
443
390
|
"AssetUpdate",
|
444
391
|
"AssetUpdateTypedDict",
|
@@ -465,8 +412,6 @@ __all__ = [
|
|
465
412
|
"CreateCollectionRequestMetadata",
|
466
413
|
"CreateCollectionRequestMetadataTypedDict",
|
467
414
|
"CreateCollectionRequestTypedDict",
|
468
|
-
"CreateInteractionFeaturesSearchInteractionsPostRequest",
|
469
|
-
"CreateInteractionFeaturesSearchInteractionsPostRequestTypedDict",
|
470
415
|
"CreateNamespaceRequest",
|
471
416
|
"CreateNamespaceRequestTypedDict",
|
472
417
|
"DateUsage",
|
@@ -475,8 +420,6 @@ __all__ = [
|
|
475
420
|
"DatetimeIndexParamsTypedDict",
|
476
421
|
"DbModelPaginationResponse",
|
477
422
|
"DbModelPaginationResponseTypedDict",
|
478
|
-
"DbModelTaskResponse",
|
479
|
-
"DbModelTaskResponseTypedDict",
|
480
423
|
"DeleteAPIKeyOrganizationsUsersUserEmailAPIKeysKeyNameDeleteRequest",
|
481
424
|
"DeleteAPIKeyOrganizationsUsersUserEmailAPIKeysKeyNameDeleteRequestTypedDict",
|
482
425
|
"DeleteAssetAssetsAssetIDDeleteRequest",
|
@@ -485,8 +428,6 @@ __all__ = [
|
|
485
428
|
"DeleteCollectionCollectionsCollectionDeleteRequestTypedDict",
|
486
429
|
"DeleteFeatureFeaturesFeatureIDDeleteRequest",
|
487
430
|
"DeleteFeatureFeaturesFeatureIDDeleteRequestTypedDict",
|
488
|
-
"DeleteInteractionFeaturesSearchInteractionsInteractionIDDeleteRequest",
|
489
|
-
"DeleteInteractionFeaturesSearchInteractionsInteractionIDDeleteRequestTypedDict",
|
490
431
|
"DeleteNamespaceNamespacesNamespaceDeleteRequest",
|
491
432
|
"DeleteNamespaceNamespacesNamespaceDeleteRequestTypedDict",
|
492
433
|
"DeleteUserOrganizationsUsersUserEmailDeleteRequest",
|
@@ -502,6 +443,8 @@ __all__ = [
|
|
502
443
|
"EmbeddingResponse",
|
503
444
|
"EmbeddingResponseTypedDict",
|
504
445
|
"EmbeddingTypedDict",
|
446
|
+
"EntitySettings",
|
447
|
+
"EntitySettingsTypedDict",
|
505
448
|
"ErrorDetail",
|
506
449
|
"ErrorDetailTypedDict",
|
507
450
|
"ErrorResponse",
|
@@ -540,8 +483,6 @@ __all__ = [
|
|
540
483
|
"GetCollectionCollectionsCollectionGetRequestTypedDict",
|
541
484
|
"GetFeatureFeaturesFeatureIDGetRequest",
|
542
485
|
"GetFeatureFeaturesFeatureIDGetRequestTypedDict",
|
543
|
-
"GetInteractionFeaturesSearchInteractionsInteractionIDGetRequest",
|
544
|
-
"GetInteractionFeaturesSearchInteractionsInteractionIDGetRequestTypedDict",
|
545
486
|
"GetNamespaceNamespacesNamespaceGetRequest",
|
546
487
|
"GetNamespaceNamespacesNamespaceGetRequestTypedDict",
|
547
488
|
"GetTaskTasksTaskIDGetRequest",
|
@@ -579,11 +520,6 @@ __all__ = [
|
|
579
520
|
"InputType",
|
580
521
|
"IntegerIndexParams",
|
581
522
|
"IntegerIndexParamsTypedDict",
|
582
|
-
"InteractionResponse",
|
583
|
-
"InteractionResponseMetadata",
|
584
|
-
"InteractionResponseMetadataTypedDict",
|
585
|
-
"InteractionResponseTypedDict",
|
586
|
-
"InteractionType",
|
587
523
|
"JSONImageOutputSettings",
|
588
524
|
"JSONImageOutputSettingsResponseShape",
|
589
525
|
"JSONImageOutputSettingsResponseShapeTypedDict",
|
@@ -616,20 +552,10 @@ __all__ = [
|
|
616
552
|
"ListFeaturesRequestTypedDict",
|
617
553
|
"ListFeaturesResponse",
|
618
554
|
"ListFeaturesResponseTypedDict",
|
619
|
-
"ListInteractionsFeaturesSearchInteractionsGetRequest",
|
620
|
-
"ListInteractionsFeaturesSearchInteractionsGetRequestTypedDict",
|
621
555
|
"Loc",
|
622
556
|
"LocTypedDict",
|
623
|
-
"
|
624
|
-
"
|
625
|
-
"LogicalOperatorOutput",
|
626
|
-
"LogicalOperatorOutputAND",
|
627
|
-
"LogicalOperatorOutputANDTypedDict",
|
628
|
-
"LogicalOperatorOutputNOR",
|
629
|
-
"LogicalOperatorOutputNORTypedDict",
|
630
|
-
"LogicalOperatorOutputOR",
|
631
|
-
"LogicalOperatorOutputORTypedDict",
|
632
|
-
"LogicalOperatorOutputTypedDict",
|
557
|
+
"LogicalOperator",
|
558
|
+
"LogicalOperatorTypedDict",
|
633
559
|
"LogoDetectSettings",
|
634
560
|
"LogoDetectSettingsTypedDict",
|
635
561
|
"Metadata",
|
@@ -656,8 +582,6 @@ __all__ = [
|
|
656
582
|
"PayloadIndexType",
|
657
583
|
"PayloadIndexTypeTypedDict",
|
658
584
|
"PayloadSchemaType",
|
659
|
-
"PercolateRequest",
|
660
|
-
"PercolateRequestTypedDict",
|
661
585
|
"Permission",
|
662
586
|
"ProcessImageURLInput",
|
663
587
|
"ProcessImageURLInputMetadata",
|
@@ -685,26 +609,21 @@ __all__ = [
|
|
685
609
|
"SearchFeaturesFeaturesSearchPostRequestTypedDict",
|
686
610
|
"SearchFeaturesFeaturesSearchPostResponseSearchFeaturesFeaturesSearchPost",
|
687
611
|
"SearchFeaturesFeaturesSearchPostResponseSearchFeaturesFeaturesSearchPostTypedDict",
|
688
|
-
"
|
689
|
-
"
|
690
|
-
"
|
691
|
-
"
|
692
|
-
"SearchQueryOutput",
|
693
|
-
"SearchQueryOutputType",
|
694
|
-
"SearchQueryOutputTypedDict",
|
695
|
-
"SearchRequestFeaturesInput",
|
696
|
-
"SearchRequestFeaturesInputTypedDict",
|
697
|
-
"SearchRequestFeaturesOutput",
|
698
|
-
"SearchRequestFeaturesOutputTypedDict",
|
612
|
+
"SearchModelSearchQuery",
|
613
|
+
"SearchModelSearchQueryTypedDict",
|
614
|
+
"SearchRequestFeatures",
|
615
|
+
"SearchRequestFeaturesTypedDict",
|
699
616
|
"Security",
|
700
617
|
"SecurityTypedDict",
|
701
618
|
"SortOption",
|
702
619
|
"SortOptionTypedDict",
|
703
620
|
"SparseEmbedding",
|
704
621
|
"SparseEmbeddingTypedDict",
|
622
|
+
"TaskResponse",
|
623
|
+
"TaskResponseTypedDict",
|
705
624
|
"TaskStatus",
|
706
|
-
"
|
707
|
-
"
|
625
|
+
"TaxonomyExtractionConfig",
|
626
|
+
"TaxonomyExtractionConfigTypedDict",
|
708
627
|
"TextIndexParams",
|
709
628
|
"TextIndexParamsTypedDict",
|
710
629
|
"TextSettings",
|
mixpeek/models/assetresponse.py
CHANGED
@@ -16,11 +16,11 @@ class FileData(BaseModel):
|
|
16
16
|
pass
|
17
17
|
|
18
18
|
|
19
|
-
class
|
19
|
+
class MetadataTypedDict(TypedDict):
|
20
20
|
pass
|
21
21
|
|
22
22
|
|
23
|
-
class
|
23
|
+
class Metadata(BaseModel):
|
24
24
|
pass
|
25
25
|
|
26
26
|
|
@@ -33,7 +33,7 @@ class AssetResponseTypedDict(TypedDict):
|
|
33
33
|
r"""The current status of the asset processing"""
|
34
34
|
file_data: NotRequired[Nullable[FileDataTypedDict]]
|
35
35
|
r"""File data associated with the asset"""
|
36
|
-
metadata: NotRequired[Nullable[
|
36
|
+
metadata: NotRequired[Nullable[MetadataTypedDict]]
|
37
37
|
r"""Additional metadata associated with the asset"""
|
38
38
|
error: NotRequired[Nullable[Any]]
|
39
39
|
r"""The error message if the asset processing failed"""
|
@@ -70,7 +70,7 @@ class AssetResponse(BaseModel):
|
|
70
70
|
file_data: OptionalNullable[FileData] = UNSET
|
71
71
|
r"""File data associated with the asset"""
|
72
72
|
|
73
|
-
metadata: OptionalNullable[
|
73
|
+
metadata: OptionalNullable[Metadata] = UNSET
|
74
74
|
r"""Additional metadata associated with the asset"""
|
75
75
|
|
76
76
|
error: OptionalNullable[Any] = UNSET
|
@@ -11,13 +11,13 @@ from typing_extensions import TypedDict
|
|
11
11
|
class AvailableIndexesResponseTypedDict(TypedDict):
|
12
12
|
r"""Response schema for available indexes endpoint"""
|
13
13
|
|
14
|
-
|
14
|
+
embedding_models: Dict[str, ModelDetailsTypedDict]
|
15
15
|
payload_indexes: List[PayloadIndexTypeTypedDict]
|
16
16
|
|
17
17
|
|
18
18
|
class AvailableIndexesResponse(BaseModel):
|
19
19
|
r"""Response schema for available indexes endpoint"""
|
20
20
|
|
21
|
-
|
21
|
+
embedding_models: Dict[str, ModelDetails]
|
22
22
|
|
23
23
|
payload_indexes: List[PayloadIndexType]
|
@@ -10,3 +10,7 @@ class AvailableModels(str, Enum):
|
|
10
10
|
TEXT = "text"
|
11
11
|
VIDEO = "video"
|
12
12
|
KEYWORD = "keyword"
|
13
|
+
NAVER_SPLADE_V3 = "naver-splade-v3"
|
14
|
+
GOOGLE_VERTEX_MULTIMODAL_EMBEDDINGS = "google-vertex-multimodal-embeddings"
|
15
|
+
OPENAI_CLIP_VIT_BASE_PATCH32 = "openai-clip-vit-base-patch32"
|
16
|
+
BAAI_BGE_M3 = "baai-bge-m3"
|
@@ -13,8 +13,8 @@ class CreateNamespaceRequestTypedDict(TypedDict):
|
|
13
13
|
|
14
14
|
namespace_name: str
|
15
15
|
r"""Name of the namespace to create"""
|
16
|
-
|
17
|
-
r"""List of vector indexes to be used within this namespace. Must be one of: 'image', 'multimodal', 'text', 'keyword'"""
|
16
|
+
embedding_models: List[str]
|
17
|
+
r"""List of vector indexes to be used within this namespace. Must be one of: 'image', 'openai-clip-vit-base-patch32', 'multimodal', 'vertex-multimodal', 'text', 'baai-bge-m3', 'keyword', 'naver-splade-v3'"""
|
18
18
|
payload_indexes: NotRequired[Nullable[List[PayloadIndexConfigTypedDict]]]
|
19
19
|
r"""List of payload index configurations"""
|
20
20
|
|
@@ -25,8 +25,8 @@ class CreateNamespaceRequest(BaseModel):
|
|
25
25
|
namespace_name: str
|
26
26
|
r"""Name of the namespace to create"""
|
27
27
|
|
28
|
-
|
29
|
-
r"""List of vector indexes to be used within this namespace. Must be one of: 'image', 'multimodal', 'text', 'keyword'"""
|
28
|
+
embedding_models: List[str]
|
29
|
+
r"""List of vector indexes to be used within this namespace. Must be one of: 'image', 'openai-clip-vit-base-patch32', 'multimodal', 'vertex-multimodal', 'text', 'baai-bge-m3', 'keyword', 'naver-splade-v3'"""
|
30
30
|
|
31
31
|
payload_indexes: OptionalNullable[List[PayloadIndexConfig]] = UNSET
|
32
32
|
r"""List of payload index configurations"""
|
@@ -10,7 +10,7 @@ from typing_extensions import NotRequired, TypedDict
|
|
10
10
|
|
11
11
|
class EmbeddingRequestTypedDict(TypedDict):
|
12
12
|
type: InputType
|
13
|
-
|
13
|
+
embedding_model: VectorModel
|
14
14
|
value: NotRequired[Nullable[str]]
|
15
15
|
r"""The input content to embed. Could be a URL, text content, file path, or base64 encoded string"""
|
16
16
|
field_name: NotRequired[Nullable[str]]
|
@@ -20,7 +20,7 @@ class EmbeddingRequestTypedDict(TypedDict):
|
|
20
20
|
class EmbeddingRequest(BaseModel):
|
21
21
|
type: InputType
|
22
22
|
|
23
|
-
|
23
|
+
embedding_model: VectorModel
|
24
24
|
|
25
25
|
value: OptionalNullable[str] = UNSET
|
26
26
|
r"""The input content to embed. Could be a URL, text content, file path, or base64 encoded string"""
|
@@ -0,0 +1,50 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .taxonomyextractionconfig import (
|
5
|
+
TaxonomyExtractionConfig,
|
6
|
+
TaxonomyExtractionConfigTypedDict,
|
7
|
+
)
|
8
|
+
from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
9
|
+
from pydantic import model_serializer
|
10
|
+
from typing_extensions import NotRequired, TypedDict
|
11
|
+
|
12
|
+
|
13
|
+
class EntitySettingsTypedDict(TypedDict):
|
14
|
+
taxonomy_extraction: NotRequired[Nullable[TaxonomyExtractionConfigTypedDict]]
|
15
|
+
r"""Settings for extracting entities using taxonomies"""
|
16
|
+
|
17
|
+
|
18
|
+
class EntitySettings(BaseModel):
|
19
|
+
taxonomy_extraction: OptionalNullable[TaxonomyExtractionConfig] = UNSET
|
20
|
+
r"""Settings for extracting entities using taxonomies"""
|
21
|
+
|
22
|
+
@model_serializer(mode="wrap")
|
23
|
+
def serialize_model(self, handler):
|
24
|
+
optional_fields = ["taxonomy_extraction"]
|
25
|
+
nullable_fields = ["taxonomy_extraction"]
|
26
|
+
null_default_fields = []
|
27
|
+
|
28
|
+
serialized = handler(self)
|
29
|
+
|
30
|
+
m = {}
|
31
|
+
|
32
|
+
for n, f in self.model_fields.items():
|
33
|
+
k = f.alias or n
|
34
|
+
val = serialized.get(k)
|
35
|
+
serialized.pop(k, None)
|
36
|
+
|
37
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
38
|
+
is_set = (
|
39
|
+
self.__pydantic_fields_set__.intersection({n})
|
40
|
+
or k in null_default_fields
|
41
|
+
) # pylint: disable=no-member
|
42
|
+
|
43
|
+
if val is not None and val != UNSET_SENTINEL:
|
44
|
+
m[k] = val
|
45
|
+
elif val != UNSET_SENTINEL and (
|
46
|
+
not k in optional_fields or (optional_nullable and is_set)
|
47
|
+
):
|
48
|
+
m[k] = val
|
49
|
+
|
50
|
+
return m
|
@@ -10,7 +10,7 @@ from typing_extensions import NotRequired, TypedDict
|
|
10
10
|
|
11
11
|
class FeatureExtractionEmbeddingRequestTypedDict(TypedDict):
|
12
12
|
type: InputType
|
13
|
-
|
13
|
+
embedding_model: VectorModel
|
14
14
|
value: NotRequired[Nullable[str]]
|
15
15
|
r"""The input content to embed. Could be a URL, text content, file path, or base64 encoded string"""
|
16
16
|
|
@@ -18,7 +18,7 @@ class FeatureExtractionEmbeddingRequestTypedDict(TypedDict):
|
|
18
18
|
class FeatureExtractionEmbeddingRequest(BaseModel):
|
19
19
|
type: InputType
|
20
20
|
|
21
|
-
|
21
|
+
embedding_model: VectorModel
|
22
22
|
|
23
23
|
value: OptionalNullable[str] = UNSET
|
24
24
|
r"""The input content to embed. Could be a URL, text content, file path, or base64 encoded string"""
|
@@ -25,8 +25,8 @@ class ImageDescribeSettingsTypedDict(TypedDict):
|
|
25
25
|
r"""Maximum length of the description"""
|
26
26
|
json_output: NotRequired[ImageDescribeSettingsJSONOutputTypedDict]
|
27
27
|
r"""JSON format for the response"""
|
28
|
-
|
29
|
-
r"""Name of the vector model to use for embedding the text output. If
|
28
|
+
embedding_model: NotRequired[Nullable[VectorModel]]
|
29
|
+
r"""Name of the vector model to use for embedding the text output. If embedding_model is duplicated, the vector will be overwritten."""
|
30
30
|
|
31
31
|
|
32
32
|
class ImageDescribeSettings(BaseModel):
|
@@ -42,8 +42,8 @@ class ImageDescribeSettings(BaseModel):
|
|
42
42
|
json_output: Optional[ImageDescribeSettingsJSONOutput] = None
|
43
43
|
r"""JSON format for the response"""
|
44
44
|
|
45
|
-
|
46
|
-
r"""Name of the vector model to use for embedding the text output. If
|
45
|
+
embedding_model: OptionalNullable[VectorModel] = UNSET
|
46
|
+
r"""Name of the vector model to use for embedding the text output. If embedding_model is duplicated, the vector will be overwritten."""
|
47
47
|
|
48
48
|
@model_serializer(mode="wrap")
|
49
49
|
def serialize_model(self, handler):
|
@@ -52,9 +52,9 @@ class ImageDescribeSettings(BaseModel):
|
|
52
52
|
"enabled",
|
53
53
|
"max_length",
|
54
54
|
"json_output",
|
55
|
-
"
|
55
|
+
"embedding_model",
|
56
56
|
]
|
57
|
-
nullable_fields = ["prompt", "max_length", "
|
57
|
+
nullable_fields = ["prompt", "max_length", "embedding_model"]
|
58
58
|
null_default_fields = []
|
59
59
|
|
60
60
|
serialized = handler(self)
|
@@ -23,8 +23,8 @@ class ImageReadSettingsTypedDict(TypedDict):
|
|
23
23
|
r"""Prompt for reading on-screen text"""
|
24
24
|
json_output: NotRequired[ImageReadSettingsJSONOutputTypedDict]
|
25
25
|
r"""JSON format for the response"""
|
26
|
-
|
27
|
-
r"""Name of the vector model to use for embedding the text output. If
|
26
|
+
embedding_model: NotRequired[Nullable[VectorModel]]
|
27
|
+
r"""Name of the vector model to use for embedding the text output. If embedding_model is duplicated, the vector will be overwritten."""
|
28
28
|
|
29
29
|
|
30
30
|
class ImageReadSettings(BaseModel):
|
@@ -37,13 +37,13 @@ class ImageReadSettings(BaseModel):
|
|
37
37
|
json_output: Optional[ImageReadSettingsJSONOutput] = None
|
38
38
|
r"""JSON format for the response"""
|
39
39
|
|
40
|
-
|
41
|
-
r"""Name of the vector model to use for embedding the text output. If
|
40
|
+
embedding_model: OptionalNullable[VectorModel] = UNSET
|
41
|
+
r"""Name of the vector model to use for embedding the text output. If embedding_model is duplicated, the vector will be overwritten."""
|
42
42
|
|
43
43
|
@model_serializer(mode="wrap")
|
44
44
|
def serialize_model(self, handler):
|
45
|
-
optional_fields = ["enabled", "prompt", "json_output", "
|
46
|
-
nullable_fields = ["prompt", "
|
45
|
+
optional_fields = ["enabled", "prompt", "json_output", "embedding_model"]
|
46
|
+
nullable_fields = ["prompt", "embedding_model"]
|
47
47
|
null_default_fields = []
|
48
48
|
|
49
49
|
serialized = handler(self)
|
mixpeek/models/imagesettings.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
4
|
from .embeddingrequest import EmbeddingRequest, EmbeddingRequestTypedDict
|
5
|
+
from .entitysettings import EntitySettings, EntitySettingsTypedDict
|
5
6
|
from .imagedescribesettings import ImageDescribeSettings, ImageDescribeSettingsTypedDict
|
6
7
|
from .imagedetectsettings import ImageDetectSettings, ImageDetectSettingsTypedDict
|
7
8
|
from .imagereadsettings import ImageReadSettings, ImageReadSettingsTypedDict
|
@@ -20,7 +21,7 @@ class ImageSettingsTypedDict(TypedDict):
|
|
20
21
|
r"""Settings for reading and analyzing image content."""
|
21
22
|
embed: NotRequired[List[EmbeddingRequestTypedDict]]
|
22
23
|
r"""List of embedding settings for generating multiple embeddings. If url is provided, value must be None.
|
23
|
-
Default: [{type: 'url',
|
24
|
+
Default: [{type: 'url', embedding_model: 'multimodal'}] if none provided.
|
24
25
|
"""
|
25
26
|
describe: NotRequired[Nullable[ImageDescribeSettingsTypedDict]]
|
26
27
|
r"""Settings for generating image descriptions."""
|
@@ -28,6 +29,8 @@ class ImageSettingsTypedDict(TypedDict):
|
|
28
29
|
r"""Settings for object detection in images."""
|
29
30
|
json_output: NotRequired[Nullable[JSONImageOutputSettingsTypedDict]]
|
30
31
|
r"""Settings for structured JSON output of image analysis."""
|
32
|
+
entities: NotRequired[Nullable[EntitySettingsTypedDict]]
|
33
|
+
r"""Settings for extracting entities from image content"""
|
31
34
|
|
32
35
|
|
33
36
|
class ImageSettings(BaseModel):
|
@@ -36,7 +39,7 @@ class ImageSettings(BaseModel):
|
|
36
39
|
|
37
40
|
embed: Optional[List[EmbeddingRequest]] = None
|
38
41
|
r"""List of embedding settings for generating multiple embeddings. If url is provided, value must be None.
|
39
|
-
Default: [{type: 'url',
|
42
|
+
Default: [{type: 'url', embedding_model: 'multimodal'}] if none provided.
|
40
43
|
"""
|
41
44
|
|
42
45
|
describe: OptionalNullable[ImageDescribeSettings] = UNSET
|
@@ -48,10 +51,20 @@ class ImageSettings(BaseModel):
|
|
48
51
|
json_output: OptionalNullable[JSONImageOutputSettings] = UNSET
|
49
52
|
r"""Settings for structured JSON output of image analysis."""
|
50
53
|
|
54
|
+
entities: OptionalNullable[EntitySettings] = UNSET
|
55
|
+
r"""Settings for extracting entities from image content"""
|
56
|
+
|
51
57
|
@model_serializer(mode="wrap")
|
52
58
|
def serialize_model(self, handler):
|
53
|
-
optional_fields = [
|
54
|
-
|
59
|
+
optional_fields = [
|
60
|
+
"read",
|
61
|
+
"embed",
|
62
|
+
"describe",
|
63
|
+
"detect",
|
64
|
+
"json_output",
|
65
|
+
"entities",
|
66
|
+
]
|
67
|
+
nullable_fields = ["read", "describe", "detect", "json_output", "entities"]
|
55
68
|
null_default_fields = []
|
56
69
|
|
57
70
|
serialized = handler(self)
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
4
|
from .groupbyoptionsasset import GroupByOptionsAsset, GroupByOptionsAssetTypedDict
|
5
|
-
from .
|
5
|
+
from .logicaloperator import LogicalOperator, LogicalOperatorTypedDict
|
6
6
|
from .sortoption import SortOption, SortOptionTypedDict
|
7
7
|
from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
8
8
|
from pydantic import model_serializer
|
@@ -13,7 +13,7 @@ from typing_extensions import NotRequired, TypedDict
|
|
13
13
|
class ListAssetsRequestTypedDict(TypedDict):
|
14
14
|
collections: List[str]
|
15
15
|
r"""List of Collection IDs or Names to search within, required"""
|
16
|
-
filters: NotRequired[Nullable[
|
16
|
+
filters: NotRequired[Nullable[LogicalOperatorTypedDict]]
|
17
17
|
r"""Used for filtering across all indexes"""
|
18
18
|
group_by: NotRequired[Nullable[GroupByOptionsAssetTypedDict]]
|
19
19
|
r"""Grouping options for search results"""
|
@@ -29,7 +29,7 @@ class ListAssetsRequest(BaseModel):
|
|
29
29
|
collections: List[str]
|
30
30
|
r"""List of Collection IDs or Names to search within, required"""
|
31
31
|
|
32
|
-
filters: OptionalNullable[
|
32
|
+
filters: OptionalNullable[LogicalOperator] = UNSET
|
33
33
|
r"""Used for filtering across all indexes"""
|
34
34
|
|
35
35
|
group_by: OptionalNullable[GroupByOptionsAsset] = UNSET
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
from .
|
4
|
+
from .logicaloperator import LogicalOperator, LogicalOperatorTypedDict
|
5
5
|
from .sortoption import SortOption, SortOptionTypedDict
|
6
6
|
from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
7
7
|
from pydantic import model_serializer
|
@@ -12,7 +12,7 @@ from typing_extensions import NotRequired, TypedDict
|
|
12
12
|
class ListFeaturesRequestTypedDict(TypedDict):
|
13
13
|
collections: List[str]
|
14
14
|
r"""Collection identifiers - can be either collection IDs or collection names"""
|
15
|
-
filters: NotRequired[Nullable[
|
15
|
+
filters: NotRequired[Nullable[LogicalOperatorTypedDict]]
|
16
16
|
r"""Complex nested query filters"""
|
17
17
|
sort: NotRequired[Nullable[SortOptionTypedDict]]
|
18
18
|
r"""
|
@@ -30,7 +30,7 @@ class ListFeaturesRequest(BaseModel):
|
|
30
30
|
collections: List[str]
|
31
31
|
r"""Collection identifiers - can be either collection IDs or collection names"""
|
32
32
|
|
33
|
-
filters: OptionalNullable[
|
33
|
+
filters: OptionalNullable[LogicalOperator] = UNSET
|
34
34
|
r"""Complex nested query filters"""
|
35
35
|
|
36
36
|
sort: OptionalNullable[SortOption] = UNSET
|