From ebf83ca8f9eefc4a6ddd2f4655f87cc87d6a614e Mon Sep 17 00:00:00 2001 From: Kaveen Kumarasinghe Date: Mon, 6 Feb 2023 19:36:02 -0500 Subject: [PATCH] slightly improve search refiner --- models/search_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/search_model.py b/models/search_model.py index 28ae2f7..3cf5307 100644 --- a/models/search_model.py +++ b/models/search_model.py @@ -106,7 +106,7 @@ class Search: # Refine a query to send to google custom search API query_refined = llm_predictor_presearch.generate( prompts=[ - "You are refining a query to send to the Google Custom Search API. Change the query such that putting it into the Google Custom Search API will return the most relevant websites to assist us in answering the original query. Respond with only the refined query for the original query. The original query is: " + "You are refining a query to send to the Google Custom Search API. Change the query such that putting it into the Google Custom Search API will return the most relevant websites to assist us in answering the original query. Respond with only the refined query for the original query. Don't use punctuation or quotation marks. The original query is: " + query + "\nRefined Query:" ]