22
33from __future__ import annotations
44
5- from typing import List
6- from typing_extensions import Literal
7-
85import httpx
96
107from ..types import search_execute_params
@@ -48,11 +45,9 @@ def execute(
4845 self ,
4946 * ,
5047 q : str ,
51- categories_filter : List [Literal ["technology" , "science" , "business" , "health" ]] | NotGiven = NOT_GIVEN ,
5248 chunk_threshold : float | NotGiven = NOT_GIVEN ,
5349 doc_id : str | NotGiven = NOT_GIVEN ,
5450 document_threshold : float | NotGiven = NOT_GIVEN ,
55- filters : search_execute_params .Filters | NotGiven = NOT_GIVEN ,
5651 include_summary : bool | NotGiven = NOT_GIVEN ,
5752 limit : int | NotGiven = NOT_GIVEN ,
5853 only_matching_chunks : bool | NotGiven = NOT_GIVEN ,
@@ -67,13 +62,11 @@ def execute(
6762 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
6863 ) -> SearchExecuteResponse :
6964 """
70- Search memories with filtering
65+ Search memories with basic filtering (simple query parameters only)
7166
7267 Args:
7368 q: Search query string
7469
75- categories_filter: Optional category filters
76-
7770 chunk_threshold: Threshold / sensitivity for chunk selection. 0 is least sensitive (returns most
7871 chunks, more results), 1 is most sensitive (returns lesser chunks, accurate
7972 results)
@@ -85,8 +78,6 @@ def execute(
8578 most documents, more results), 1 is most sensitive (returns lesser documents,
8679 accurate results)
8780
88- filters: Optional filters to apply to the search
89-
9081 include_summary: If true, include document summary in the response. This is helpful if you want a
9182 chatbot to know the full context of the document.
9283
@@ -123,11 +114,9 @@ def execute(
123114 query = maybe_transform (
124115 {
125116 "q" : q ,
126- "categories_filter" : categories_filter ,
127117 "chunk_threshold" : chunk_threshold ,
128118 "doc_id" : doc_id ,
129119 "document_threshold" : document_threshold ,
130- "filters" : filters ,
131120 "include_summary" : include_summary ,
132121 "limit" : limit ,
133122 "only_matching_chunks" : only_matching_chunks ,
@@ -166,11 +155,9 @@ async def execute(
166155 self ,
167156 * ,
168157 q : str ,
169- categories_filter : List [Literal ["technology" , "science" , "business" , "health" ]] | NotGiven = NOT_GIVEN ,
170158 chunk_threshold : float | NotGiven = NOT_GIVEN ,
171159 doc_id : str | NotGiven = NOT_GIVEN ,
172160 document_threshold : float | NotGiven = NOT_GIVEN ,
173- filters : search_execute_params .Filters | NotGiven = NOT_GIVEN ,
174161 include_summary : bool | NotGiven = NOT_GIVEN ,
175162 limit : int | NotGiven = NOT_GIVEN ,
176163 only_matching_chunks : bool | NotGiven = NOT_GIVEN ,
@@ -185,13 +172,11 @@ async def execute(
185172 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
186173 ) -> SearchExecuteResponse :
187174 """
188- Search memories with filtering
175+ Search memories with basic filtering (simple query parameters only)
189176
190177 Args:
191178 q: Search query string
192179
193- categories_filter: Optional category filters
194-
195180 chunk_threshold: Threshold / sensitivity for chunk selection. 0 is least sensitive (returns most
196181 chunks, more results), 1 is most sensitive (returns lesser chunks, accurate
197182 results)
@@ -203,8 +188,6 @@ async def execute(
203188 most documents, more results), 1 is most sensitive (returns lesser documents,
204189 accurate results)
205190
206- filters: Optional filters to apply to the search
207-
208191 include_summary: If true, include document summary in the response. This is helpful if you want a
209192 chatbot to know the full context of the document.
210193
@@ -241,11 +224,9 @@ async def execute(
241224 query = await async_maybe_transform (
242225 {
243226 "q" : q ,
244- "categories_filter" : categories_filter ,
245227 "chunk_threshold" : chunk_threshold ,
246228 "doc_id" : doc_id ,
247229 "document_threshold" : document_threshold ,
248- "filters" : filters ,
249230 "include_summary" : include_summary ,
250231 "limit" : limit ,
251232 "only_matching_chunks" : only_matching_chunks ,
0 commit comments