File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -392,6 +392,7 @@ def search(
392392 rerank_params : dict = SemanticSearchDefaultValues .rerank_params ,
393393 sort_docs_on : str = SemanticSearchDefaultValues .sort_docs_on ,
394394 filter : List [Dict [str , Any ]] = [],
395+ prompt_id : Optional [str ] = None ,
395396 ) -> SearchResult :
396397 """Search for a query in the collection.
397398
@@ -404,6 +405,7 @@ def search(
404405 :param bool rerank: Rerank search results (optional)
405406 :param dict rerank_params: Parameters for reranking (optional)
406407 :param str sort_docs_on: Parameter to specify what metric to sort the docs of video on
408+ :param str prompt_id: ID of the prompt to use for search (optional)
407409 :raise SearchError: If the search fails
408410 :return: :class:`SearchResult <SearchResult>` object
409411 :rtype: :class:`videodb.search.SearchResult`
@@ -420,7 +422,8 @@ def search(
420422 rerank = rerank ,
421423 rerank_params = rerank_params ,
422424 filter = filter ,
423- sort_docs_on = sort_docs_on
425+ sort_docs_on = sort_docs_on ,
426+ prompt_id = prompt_id ,
424427 )
425428
426429 def search_title (self , query ) -> List [Video ]:
You can’t perform that action at this time.
0 commit comments