prasadnu commited on
Commit
ec6ab84
·
1 Parent(s): e02810d

multilingual

Browse files
semantic_search/all_search_execute.py CHANGED
@@ -172,8 +172,8 @@ def handler(input_,session_id):
172
  opensearch_translation_pipeline_with_rerank = json.loads((requests.get(host+'_search/pipeline/ml_inference_for_vector_search_and_language_translation_with_rerank', auth=awsauth,headers=headers)).text)
173
  path = "_search/pipeline/ml_inference_for_vector_search_and_language_translation_with_rerank"
174
  url = host + path
175
- opensearch_translation_pipeline_with_rerank["opensearch_translation_pipeline_with_rerank"]["phase_results_processors"] = hybrid_search_processor
176
- r = requests.put(url, auth=awsauth, json=opensearch_translation_pipeline_with_rerank["opensearch_translation_pipeline_with_rerank"], headers=headers)
177
  print("translation hybrid rerank Search Pipeline updated: "+str(r.status_code))
178
  ######## start of Applying LLM filters #######
179
  if(st.session_state.input_rewritten_query!=""):
 
172
  opensearch_translation_pipeline_with_rerank = json.loads((requests.get(host+'_search/pipeline/ml_inference_for_vector_search_and_language_translation_with_rerank', auth=awsauth,headers=headers)).text)
173
  path = "_search/pipeline/ml_inference_for_vector_search_and_language_translation_with_rerank"
174
  url = host + path
175
+ opensearch_translation_pipeline_with_rerank["ml_inference_for_vector_search_and_language_translation_with_rerank"]["phase_results_processors"] = hybrid_search_processor
176
+ r = requests.put(url, auth=awsauth, json=opensearch_translation_pipeline_with_rerank["ml_inference_for_vector_search_and_language_translation_with_rerank"], headers=headers)
177
  print("translation hybrid rerank Search Pipeline updated: "+str(r.status_code))
178
  ######## start of Applying LLM filters #######
179
  if(st.session_state.input_rewritten_query!=""):