@@ -66,32 +66,40 @@ def execute(
6666 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
6767 ) -> SearchExecuteResponse :
6868 """
69- Search through documents with metadata filtering
69+ Search through documents with filtering
7070
7171 Args:
7272 q: Search query string
7373
7474 categories_filter: Optional category filters
7575
76- chunk_threshold: Maximum number of chunks to return
76+ chunk_threshold: Threshold / sensitivity for chunk selection. 0 is least sensitive (returns most
77+ chunks, more results), 1 is most sensitive (returns lesser chunks, accurate
78+ results)
7779
78- doc_id: Optional document ID to search within
80+ doc_id: Optional document ID to search within. You can use this to find chunks in a very
81+ large document.
7982
80- document_threshold: Maximum number of documents to return
83+ document_threshold: Threshold / sensitivity for document selection. 0 is least sensitive (returns
84+ most documents, more results), 1 is most sensitive (returns lesser documents,
85+ accurate results)
8186
8287 filters: Optional filters to apply to the search
8388
8489 include_summary: If true, include document summary in the response. This is helpful if you want a
85- chatbot to know the context of the document.
90+ chatbot to know the full context of the document.
8691
8792 limit: Maximum number of results to return
8893
89- only_matching_chunks: If true, only return matching chunks without context
94+ only_matching_chunks: If true, only return matching chunks without context. Normally, we send the
95+ previous and next chunk to provide more context for LLMs. If you only want the
96+ matching chunk, set this to true.
9097
9198 rewrite_query: If true, rewrites the query to make it easier to find documents. This increases
9299 the latency by about 400ms
93100
94- user_id: End user ID this search is associated with
101+ user_id: End user ID this search is associated with. NOTE: This also acts as a filter for
102+ the search.
95103
96104 extra_headers: Send extra headers
97105
@@ -168,32 +176,40 @@ async def execute(
168176 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
169177 ) -> SearchExecuteResponse :
170178 """
171- Search through documents with metadata filtering
179+ Search through documents with filtering
172180
173181 Args:
174182 q: Search query string
175183
176184 categories_filter: Optional category filters
177185
178- chunk_threshold: Maximum number of chunks to return
186+ chunk_threshold: Threshold / sensitivity for chunk selection. 0 is least sensitive (returns most
187+ chunks, more results), 1 is most sensitive (returns lesser chunks, accurate
188+ results)
179189
180- doc_id: Optional document ID to search within
190+ doc_id: Optional document ID to search within. You can use this to find chunks in a very
191+ large document.
181192
182- document_threshold: Maximum number of documents to return
193+ document_threshold: Threshold / sensitivity for document selection. 0 is least sensitive (returns
194+ most documents, more results), 1 is most sensitive (returns lesser documents,
195+ accurate results)
183196
184197 filters: Optional filters to apply to the search
185198
186199 include_summary: If true, include document summary in the response. This is helpful if you want a
187- chatbot to know the context of the document.
200+ chatbot to know the full context of the document.
188201
189202 limit: Maximum number of results to return
190203
191- only_matching_chunks: If true, only return matching chunks without context
204+ only_matching_chunks: If true, only return matching chunks without context. Normally, we send the
205+ previous and next chunk to provide more context for LLMs. If you only want the
206+ matching chunk, set this to true.
192207
193208 rewrite_query: If true, rewrites the query to make it easier to find documents. This increases
194209 the latency by about 400ms
195210
196- user_id: End user ID this search is associated with
211+ user_id: End user ID this search is associated with. NOTE: This also acts as a filter for
212+ the search.
197213
198214 extra_headers: Send extra headers
199215
0 commit comments