|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import Optional |
| 5 | +from typing import Dict, Optional |
6 | 6 |
|
7 | 7 | import httpx |
8 | 8 |
|
9 | | -from ..types import ( |
10 | | - query_top_pages_params, |
11 | | - query_top_snippets_params, |
12 | | - query_top_documents_params, |
13 | | -) |
| 9 | +from ..types import query_top_pages_params, query_top_snippets_params, query_top_documents_params |
14 | 10 | from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
15 | 11 | from .._utils import ( |
16 | 12 | maybe_transform, |
|
25 | 21 | async_to_streamed_response_wrapper, |
26 | 22 | ) |
27 | 23 | from .._base_client import make_request_options |
28 | | -from ..types.str_json_param import StrJsonParam |
29 | 24 | from ..types.query_top_pages_response import QueryTopPagesResponse |
30 | 25 | from ..types.query_top_snippets_response import QueryTopSnippetsResponse |
31 | 26 | from ..types.query_top_documents_response import QueryTopDocumentsResponse |
@@ -59,7 +54,7 @@ def top_documents( |
59 | 54 | collection_name: str, |
60 | 55 | k: int, |
61 | 56 | query: str, |
62 | | - filter: Optional[StrJsonParam] | NotGiven = NOT_GIVEN, |
| 57 | + filter: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN, |
63 | 58 | include_metadata: bool | NotGiven = NOT_GIVEN, |
64 | 59 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
65 | 60 | # The extra values given here take precedence over values defined on the client or passed to this method. |
@@ -119,7 +114,7 @@ def top_pages( |
119 | 114 | collection_name: str, |
120 | 115 | k: int, |
121 | 116 | query: str, |
122 | | - filter: Optional[StrJsonParam] | NotGiven = NOT_GIVEN, |
| 117 | + filter: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN, |
123 | 118 | include_content: bool | NotGiven = NOT_GIVEN, |
124 | 119 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
125 | 120 | # The extra values given here take precedence over values defined on the client or passed to this method. |
@@ -178,7 +173,7 @@ def top_snippets( |
178 | 173 | collection_name: str, |
179 | 174 | k: int, |
180 | 175 | query: str, |
181 | | - filter: Optional[StrJsonParam] | NotGiven = NOT_GIVEN, |
| 176 | + filter: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN, |
182 | 177 | precise_responses: bool | NotGiven = NOT_GIVEN, |
183 | 178 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
184 | 179 | # The extra values given here take precedence over values defined on the client or passed to this method. |
@@ -265,7 +260,7 @@ async def top_documents( |
265 | 260 | collection_name: str, |
266 | 261 | k: int, |
267 | 262 | query: str, |
268 | | - filter: Optional[StrJsonParam] | NotGiven = NOT_GIVEN, |
| 263 | + filter: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN, |
269 | 264 | include_metadata: bool | NotGiven = NOT_GIVEN, |
270 | 265 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
271 | 266 | # The extra values given here take precedence over values defined on the client or passed to this method. |
@@ -325,7 +320,7 @@ async def top_pages( |
325 | 320 | collection_name: str, |
326 | 321 | k: int, |
327 | 322 | query: str, |
328 | | - filter: Optional[StrJsonParam] | NotGiven = NOT_GIVEN, |
| 323 | + filter: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN, |
329 | 324 | include_content: bool | NotGiven = NOT_GIVEN, |
330 | 325 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
331 | 326 | # The extra values given here take precedence over values defined on the client or passed to this method. |
@@ -384,7 +379,7 @@ async def top_snippets( |
384 | 379 | collection_name: str, |
385 | 380 | k: int, |
386 | 381 | query: str, |
387 | | - filter: Optional[StrJsonParam] | NotGiven = NOT_GIVEN, |
| 382 | + filter: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN, |
388 | 383 | precise_responses: bool | NotGiven = NOT_GIVEN, |
389 | 384 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
390 | 385 | # The extra values given here take precedence over values defined on the client or passed to this method. |
|
0 commit comments