mixpeek 0.16.0__py3-none-any.whl → 0.16.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/feature_search.py +16 -12
- mixpeek/models/searchrequestfeatures.py +9 -7
- mixpeek/sdkconfiguration.py +4 -4
- {mixpeek-0.16.0.dist-info → mixpeek-0.16.1.dist-info}/METADATA +2 -2
- {mixpeek-0.16.0.dist-info → mixpeek-0.16.1.dist-info}/RECORD +7 -7
- {mixpeek-0.16.0.dist-info → mixpeek-0.16.1.dist-info}/WHEEL +0 -0
mixpeek/_version.py
CHANGED
mixpeek/feature_search.py
CHANGED
@@ -12,14 +12,16 @@ class FeatureSearch(BaseSDK):
|
|
12
12
|
def search_features_v1_features_search_post(
|
13
13
|
self,
|
14
14
|
*,
|
15
|
-
queries: Union[
|
16
|
-
List[models.SearchModelSearchQuery],
|
17
|
-
List[models.SearchModelSearchQueryTypedDict],
|
18
|
-
],
|
19
15
|
collections: List[str],
|
20
16
|
offset_position: OptionalNullable[int] = UNSET,
|
21
17
|
page_size: Optional[int] = 10,
|
22
18
|
x_namespace: OptionalNullable[str] = UNSET,
|
19
|
+
queries: OptionalNullable[
|
20
|
+
Union[
|
21
|
+
List[models.SearchModelSearchQuery],
|
22
|
+
List[models.SearchModelSearchQueryTypedDict],
|
23
|
+
]
|
24
|
+
] = UNSET,
|
23
25
|
filters: OptionalNullable[
|
24
26
|
Union[models.LogicalOperator, models.LogicalOperatorTypedDict]
|
25
27
|
] = UNSET,
|
@@ -44,11 +46,11 @@ class FeatureSearch(BaseSDK):
|
|
44
46
|
|
45
47
|
This endpoint allows you to search features.
|
46
48
|
|
47
|
-
:param queries: List of search queries to perform. Behavior: - Single query: Results are returned directly from that query - Multiple queries: Results are combined using Reciprocal Rank Fusion (RRF) RRF combines results from multiple queries by: 1. Taking each item's rank position in each result list 2. Re-ranking all items by their combined RRF scores When merging lists from different sources, RRF considers all items that appear in any of the input lists, not just items that appear in all lists. This helps surface items that rank well across multiple queries while reducing the impact of outlier high rankings in single queries. NOTE: If query array is empty, it will return all features.
|
48
49
|
:param collections: List of Collection names to search within, required
|
49
50
|
:param offset_position: The position to start returning results from. Used for pagination. Does not work with group_by
|
50
51
|
:param page_size: Number of results to return per page.
|
51
52
|
:param x_namespace: Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.
|
53
|
+
:param queries: List of search queries to perform. Behavior: - Single query: Results are returned directly from that query - Multiple queries: Results are combined using Reciprocal Rank Fusion (RRF) RRF combines results from multiple queries by: 1. Taking each item's rank position in each result list 2. Re-ranking all items by their combined RRF scores When merging lists from different sources, RRF considers all items that appear in any of the input lists, not just items that appear in all lists. This helps surface items that rank well across multiple queries while reducing the impact of outlier high rankings in single queries. NOTE: If query array is empty, it will return all features.
|
52
54
|
:param filters: Used for filtering across all indexes
|
53
55
|
:param group_by: Grouping options for search results
|
54
56
|
:param sort: List of fields to sort by, with direction (asc or desc). Supports dot notation for nested fields.
|
@@ -75,7 +77,7 @@ class FeatureSearch(BaseSDK):
|
|
75
77
|
x_namespace=x_namespace,
|
76
78
|
search_request_features=models.SearchRequestFeatures(
|
77
79
|
queries=utils.get_pydantic_model(
|
78
|
-
queries, List[models.SearchModelSearchQuery]
|
80
|
+
queries, OptionalNullable[List[models.SearchModelSearchQuery]]
|
79
81
|
),
|
80
82
|
collections=collections,
|
81
83
|
filters=utils.get_pydantic_model(
|
@@ -172,14 +174,16 @@ class FeatureSearch(BaseSDK):
|
|
172
174
|
async def search_features_v1_features_search_post_async(
|
173
175
|
self,
|
174
176
|
*,
|
175
|
-
queries: Union[
|
176
|
-
List[models.SearchModelSearchQuery],
|
177
|
-
List[models.SearchModelSearchQueryTypedDict],
|
178
|
-
],
|
179
177
|
collections: List[str],
|
180
178
|
offset_position: OptionalNullable[int] = UNSET,
|
181
179
|
page_size: Optional[int] = 10,
|
182
180
|
x_namespace: OptionalNullable[str] = UNSET,
|
181
|
+
queries: OptionalNullable[
|
182
|
+
Union[
|
183
|
+
List[models.SearchModelSearchQuery],
|
184
|
+
List[models.SearchModelSearchQueryTypedDict],
|
185
|
+
]
|
186
|
+
] = UNSET,
|
183
187
|
filters: OptionalNullable[
|
184
188
|
Union[models.LogicalOperator, models.LogicalOperatorTypedDict]
|
185
189
|
] = UNSET,
|
@@ -204,11 +208,11 @@ class FeatureSearch(BaseSDK):
|
|
204
208
|
|
205
209
|
This endpoint allows you to search features.
|
206
210
|
|
207
|
-
:param queries: List of search queries to perform. Behavior: - Single query: Results are returned directly from that query - Multiple queries: Results are combined using Reciprocal Rank Fusion (RRF) RRF combines results from multiple queries by: 1. Taking each item's rank position in each result list 2. Re-ranking all items by their combined RRF scores When merging lists from different sources, RRF considers all items that appear in any of the input lists, not just items that appear in all lists. This helps surface items that rank well across multiple queries while reducing the impact of outlier high rankings in single queries. NOTE: If query array is empty, it will return all features.
|
208
211
|
:param collections: List of Collection names to search within, required
|
209
212
|
:param offset_position: The position to start returning results from. Used for pagination. Does not work with group_by
|
210
213
|
:param page_size: Number of results to return per page.
|
211
214
|
:param x_namespace: Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.
|
215
|
+
:param queries: List of search queries to perform. Behavior: - Single query: Results are returned directly from that query - Multiple queries: Results are combined using Reciprocal Rank Fusion (RRF) RRF combines results from multiple queries by: 1. Taking each item's rank position in each result list 2. Re-ranking all items by their combined RRF scores When merging lists from different sources, RRF considers all items that appear in any of the input lists, not just items that appear in all lists. This helps surface items that rank well across multiple queries while reducing the impact of outlier high rankings in single queries. NOTE: If query array is empty, it will return all features.
|
212
216
|
:param filters: Used for filtering across all indexes
|
213
217
|
:param group_by: Grouping options for search results
|
214
218
|
:param sort: List of fields to sort by, with direction (asc or desc). Supports dot notation for nested fields.
|
@@ -235,7 +239,7 @@ class FeatureSearch(BaseSDK):
|
|
235
239
|
x_namespace=x_namespace,
|
236
240
|
search_request_features=models.SearchRequestFeatures(
|
237
241
|
queries=utils.get_pydantic_model(
|
238
|
-
queries, List[models.SearchModelSearchQuery]
|
242
|
+
queries, OptionalNullable[List[models.SearchModelSearchQuery]]
|
239
243
|
),
|
240
244
|
collections=collections,
|
241
245
|
filters=utils.get_pydantic_model(
|
@@ -16,7 +16,9 @@ from typing_extensions import NotRequired, TypedDict
|
|
16
16
|
|
17
17
|
|
18
18
|
class SearchRequestFeaturesTypedDict(TypedDict):
|
19
|
-
|
19
|
+
collections: List[str]
|
20
|
+
r"""List of Collection names to search within, required"""
|
21
|
+
queries: NotRequired[Nullable[List[SearchModelSearchQueryTypedDict]]]
|
20
22
|
r"""List of search queries to perform.
|
21
23
|
|
22
24
|
Behavior:
|
@@ -38,8 +40,6 @@ class SearchRequestFeaturesTypedDict(TypedDict):
|
|
38
40
|
|
39
41
|
|
40
42
|
"""
|
41
|
-
collections: List[str]
|
42
|
-
r"""List of Collection names to search within, required"""
|
43
43
|
filters: NotRequired[Nullable[LogicalOperatorTypedDict]]
|
44
44
|
r"""Used for filtering across all indexes"""
|
45
45
|
group_by: NotRequired[Nullable[GroupByOptionsTypedDict]]
|
@@ -57,7 +57,10 @@ class SearchRequestFeaturesTypedDict(TypedDict):
|
|
57
57
|
|
58
58
|
|
59
59
|
class SearchRequestFeatures(BaseModel):
|
60
|
-
|
60
|
+
collections: List[str]
|
61
|
+
r"""List of Collection names to search within, required"""
|
62
|
+
|
63
|
+
queries: OptionalNullable[List[SearchModelSearchQuery]] = UNSET
|
61
64
|
r"""List of search queries to perform.
|
62
65
|
|
63
66
|
Behavior:
|
@@ -80,9 +83,6 @@ class SearchRequestFeatures(BaseModel):
|
|
80
83
|
|
81
84
|
"""
|
82
85
|
|
83
|
-
collections: List[str]
|
84
|
-
r"""List of Collection names to search within, required"""
|
85
|
-
|
86
86
|
filters: OptionalNullable[LogicalOperator] = UNSET
|
87
87
|
r"""Used for filtering across all indexes"""
|
88
88
|
|
@@ -107,6 +107,7 @@ class SearchRequestFeatures(BaseModel):
|
|
107
107
|
@model_serializer(mode="wrap")
|
108
108
|
def serialize_model(self, handler):
|
109
109
|
optional_fields = [
|
110
|
+
"queries",
|
110
111
|
"filters",
|
111
112
|
"group_by",
|
112
113
|
"sort",
|
@@ -116,6 +117,7 @@ class SearchRequestFeatures(BaseModel):
|
|
116
117
|
"return_url",
|
117
118
|
]
|
118
119
|
nullable_fields = [
|
120
|
+
"queries",
|
119
121
|
"filters",
|
120
122
|
"group_by",
|
121
123
|
"sort",
|
mixpeek/sdkconfiguration.py
CHANGED
@@ -12,7 +12,7 @@ from typing import Callable, Dict, Optional, Tuple, Union
|
|
12
12
|
|
13
13
|
|
14
14
|
SERVERS = [
|
15
|
-
"https://api.mixpeek.com
|
15
|
+
"https://api.mixpeek.com",
|
16
16
|
]
|
17
17
|
"""Contains the list of servers available to the SDK"""
|
18
18
|
|
@@ -28,9 +28,9 @@ class SDKConfiguration:
|
|
28
28
|
server_idx: Optional[int] = 0
|
29
29
|
language: str = "python"
|
30
30
|
openapi_doc_version: str = "0.81"
|
31
|
-
sdk_version: str = "0.16.
|
32
|
-
gen_version: str = "2.
|
33
|
-
user_agent: str = "speakeasy-sdk/python 0.16.
|
31
|
+
sdk_version: str = "0.16.1"
|
32
|
+
gen_version: str = "2.488.4"
|
33
|
+
user_agent: str = "speakeasy-sdk/python 0.16.1 2.488.4 0.81 mixpeek"
|
34
34
|
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
|
35
35
|
timeout_ms: Optional[int] = None
|
36
36
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: mixpeek
|
3
|
-
Version: 0.16.
|
3
|
+
Version: 0.16.1
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
5
5
|
Home-page: https://github.com/mixpeek/python-sdk.git
|
6
6
|
Author: Speakeasy
|
@@ -348,7 +348,7 @@ from mixpeek import Mixpeek
|
|
348
348
|
import os
|
349
349
|
|
350
350
|
with Mixpeek(
|
351
|
-
server_url="https://api.mixpeek.com
|
351
|
+
server_url="https://api.mixpeek.com",
|
352
352
|
token=os.getenv("MIXPEEK_TOKEN", ""),
|
353
353
|
) as mixpeek:
|
354
354
|
|
@@ -4,12 +4,12 @@ mixpeek/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,11
|
|
4
4
|
mixpeek/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
5
5
|
mixpeek/_hooks/sdkhooks.py,sha256=T0xbVPw8mvvFszHZlrZdtFrJBovAqE-JQfw4dS9Xi7Y,2495
|
6
6
|
mixpeek/_hooks/types.py,sha256=Qh9pO5ndynMrWpMLPkJUsOmAJ1AJHntJAXb5Yxe_a4o,2568
|
7
|
-
mixpeek/_version.py,sha256=
|
7
|
+
mixpeek/_version.py,sha256=pBE18cqKXAMKVukP3ar9YIX5kPT4CuOTVQ1EJnROtJw,312
|
8
8
|
mixpeek/assets.py,sha256=cHLz0gzqQAtdZlssqJJnMBdYKSKIeBH-eNIwDpDCDiI,69712
|
9
9
|
mixpeek/basesdk.py,sha256=j_PZqE6WgIfx1cPCK5gAVn-rgPy9iLhUN5ELtefoEU0,11976
|
10
10
|
mixpeek/collections.py,sha256=ebsOO4uWkx2g7mn-1h6_cSicIULr6i_51SVcStJNmSQ,45017
|
11
11
|
mixpeek/feature_extractors.py,sha256=BEbpyJ8a5OHZQ5gv7NyUKb88kla9oU5K0PaN3e7LhTU,8790
|
12
|
-
mixpeek/feature_search.py,sha256=
|
12
|
+
mixpeek/feature_search.py,sha256=DZt2QiK47SQmbGX_8QKBrfmRAP7dOOe_3wee4srZAco,16801
|
13
13
|
mixpeek/features.py,sha256=hG5l0OgVYwURoaQF0LSVXL_-GcdZr3OPG3QjEpVtSlE,38270
|
14
14
|
mixpeek/health.py,sha256=WHt-S9BJvonMSIPGF8VSCDqLMhmigk-FhC0-0tIK9_8,6254
|
15
15
|
mixpeek/httpclient.py,sha256=WDbLpMzo7qmWki_ryOJcCAYNI1T4uyWKV08rRuCdNII,2688
|
@@ -133,7 +133,7 @@ mixpeek/models/search_assets_v1_assets_search_postop.py,sha256=0lAHBnYg-UgL31nHY
|
|
133
133
|
mixpeek/models/search_features_v1_features_search_postop.py,sha256=Gmuo9M31hlOkK_15xbh6YMSfMEN945HDUYEcY5QLxqQ,3442
|
134
134
|
mixpeek/models/search_model_searchquery.py,sha256=Pz4li1PB4GWWtwoa7IElJZQKE5v1xxjumGIES6ioVCw,2538
|
135
135
|
mixpeek/models/searchassetsrequest.py,sha256=ikLw6_K9xBF_bSuzrr6-lEIKLYlfmxC9-U_gr_xZf8A,2998
|
136
|
-
mixpeek/models/searchrequestfeatures.py,sha256=
|
136
|
+
mixpeek/models/searchrequestfeatures.py,sha256=jw_apvzkXts8YnyhWoX9_dV8_031tZNvM-QRRIePDmw,5802
|
137
137
|
mixpeek/models/security.py,sha256=BmBA5yNcaMUKWsJGJtBdZvO1drfqEjAnN4nDs-IOKm4,678
|
138
138
|
mixpeek/models/sortoption.py,sha256=3_cJW0A9vt8INQowzJ_kZtmYT1mlBNy-__f-tvLiC3Q,639
|
139
139
|
mixpeek/models/sparseembedding.py,sha256=-nXJSRELVSQqTyXAPYA4swPKBscLdljq9vH4N91Yz7A,530
|
@@ -171,7 +171,7 @@ mixpeek/namespaces.py,sha256=2n8traMUAaqZFEquiELpsKpiXK8PYdHFjQTYZlExVA0,49060
|
|
171
171
|
mixpeek/organizations.py,sha256=xiI87NMxPeRQ3uDZoGPw3T0NqpfwxdDSVjx0e0LszfM,63769
|
172
172
|
mixpeek/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
173
173
|
mixpeek/sdk.py,sha256=EU2QoNf-Z50vzlGpB3zZB8JHwrtGh5z7lWQ07JYHhY8,5984
|
174
|
-
mixpeek/sdkconfiguration.py,sha256=
|
174
|
+
mixpeek/sdkconfiguration.py,sha256=KUodwIbyw_W4SyS6HKs6oNrQa3rzpQfg2qPI8tKHhVI,1600
|
175
175
|
mixpeek/tasks.py,sha256=TM-IqCa6rjuFG_MspECNjz0LmwPXA0XtbtRkHHgwd8A,16760
|
176
176
|
mixpeek/taxonomy_entities.py,sha256=-XXldQSJp-HOvES917h-Me2k-KDXRbtqmlYTV1GM4bA,96228
|
177
177
|
mixpeek/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
@@ -191,6 +191,6 @@ mixpeek/utils/security.py,sha256=XoK-R2YMyZtVWQte7FoezfGJS-dea9jz4qQ7w5dwNWc,600
|
|
191
191
|
mixpeek/utils/serializers.py,sha256=BSJT7kBOkNBFyP7KREyMoe14JGbgijD1M6AXFMbdmco,4924
|
192
192
|
mixpeek/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
193
193
|
mixpeek/utils/values.py,sha256=_89YXPTI_BU6SXJBzFR4pIzTCBPQW9tsOTN1jeBBIDs,3428
|
194
|
-
mixpeek-0.16.
|
195
|
-
mixpeek-0.16.
|
196
|
-
mixpeek-0.16.
|
194
|
+
mixpeek-0.16.1.dist-info/METADATA,sha256=3uGJprD28CZClEqmlc2Jqk3M6fbTy6t3w7VuNXTi8nE,24036
|
195
|
+
mixpeek-0.16.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
196
|
+
mixpeek-0.16.1.dist-info/RECORD,,
|
File without changes
|