NCTCMumbai commited on
Commit
62008fe
1 Parent(s): 79c5dd7

Update middlewares/utils.py

Browse files
Files changed (1) hide show
  1. middlewares/utils.py +2 -4
middlewares/utils.py CHANGED
@@ -9,8 +9,6 @@ from dotenv import load_dotenv
9
 
10
  load_dotenv()
11
 
12
- start_date='1/05/2024'
13
- end_date='26/05/2024'
14
 
15
  BING_SEARCH_API_KEY = os.environ.get('AZURE_SEARCH_KEY', 'b828219acd4f46d0b77d51b4564a8475')
16
  reranker = CrossEncoder("cross-encoder/ms-marco-MiniLM-L-6-v2")
@@ -70,7 +68,7 @@ def gen_augmented_prompt_via_websearch(
70
  search_results = []
71
  reranked_results = []
72
  if search_vendor == "Google":
73
- search_results =googleSearchClient.search_google(start_date,end_date,prompt, n_crawl)
74
  elif search_vendor == "Bing":
75
  search_results = bingSearchClient.search(prompt, n_crawl)
76
  print('search_results',search_results)
@@ -110,4 +108,4 @@ def gen_augmented_prompt_via_websearch(
110
  """
111
 
112
  print(augmented_prompt)
113
- return augmented_prompt, links
 
9
 
10
  load_dotenv()
11
 
 
 
12
 
13
  BING_SEARCH_API_KEY = os.environ.get('AZURE_SEARCH_KEY', 'b828219acd4f46d0b77d51b4564a8475')
14
  reranker = CrossEncoder("cross-encoder/ms-marco-MiniLM-L-6-v2")
 
68
  search_results = []
69
  reranked_results = []
70
  if search_vendor == "Google":
71
+ search_results =googleSearchClient.search_google(prompt, n_crawl)
72
  elif search_vendor == "Bing":
73
  search_results = bingSearchClient.search(prompt, n_crawl)
74
  print('search_results',search_results)
 
108
  """
109
 
110
  print(augmented_prompt)
111
+ return augmented_prompt, links