22
33from __future__ import annotations
44
5+ from typing import List
56from typing_extensions import Literal
67
78import httpx
@@ -49,7 +50,7 @@ def retrieve(
4950 self ,
5051 * ,
5152 query : str ,
52- filter : query_retrieve_params . Filter | NotGiven = NOT_GIVEN ,
53+ collections : List [ str ] | NotGiven = NOT_GIVEN ,
5354 max_results : int | NotGiven = NOT_GIVEN ,
5455 query_type : Literal ["auto" , "semantic" , "keyword" ] | NotGiven = NOT_GIVEN ,
5556 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -65,7 +66,7 @@ def retrieve(
6566 Args:
6667 query: Query to run.
6768
68- filter: Filter the query results .
69+ collections: Only query documents in these collections .
6970
7071 max_results: Maximum number of results to return.
7172
@@ -84,7 +85,7 @@ def retrieve(
8485 body = maybe_transform (
8586 {
8687 "query" : query ,
87- "filter " : filter ,
88+ "collections " : collections ,
8889 "max_results" : max_results ,
8990 "query_type" : query_type ,
9091 },
@@ -121,7 +122,7 @@ async def retrieve(
121122 self ,
122123 * ,
123124 query : str ,
124- filter : query_retrieve_params . Filter | NotGiven = NOT_GIVEN ,
125+ collections : List [ str ] | NotGiven = NOT_GIVEN ,
125126 max_results : int | NotGiven = NOT_GIVEN ,
126127 query_type : Literal ["auto" , "semantic" , "keyword" ] | NotGiven = NOT_GIVEN ,
127128 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -137,7 +138,7 @@ async def retrieve(
137138 Args:
138139 query: Query to run.
139140
140- filter: Filter the query results .
141+ collections: Only query documents in these collections .
141142
142143 max_results: Maximum number of results to return.
143144
@@ -156,7 +157,7 @@ async def retrieve(
156157 body = await async_maybe_transform (
157158 {
158159 "query" : query ,
159- "filter " : filter ,
160+ "collections " : collections ,
160161 "max_results" : max_results ,
161162 "query_type" : query_type ,
162163 },
0 commit comments