Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
search pipeline updated
Browse files
RAG/rag_DocumentSearcher.py
CHANGED
|
@@ -194,7 +194,7 @@ def query_(awsauth,inputs, session_id,search_types):
|
|
| 194 |
r = requests.put(s_pipeline_url, auth=awsauth, json=s_pipeline_payload, headers=headers)
|
| 195 |
path = st.session_state.input_index+"/_search?search_pipeline=rag-search-pipeline"
|
| 196 |
else:
|
| 197 |
-
if(input_is_rerank):
|
| 198 |
path = st.session_state.input_index+"/_search?search_pipeline=rerank_pipeline_rag"
|
| 199 |
else:
|
| 200 |
path = st.session_state.input_index+"/_search"
|
|
|
|
| 194 |
r = requests.put(s_pipeline_url, auth=awsauth, json=s_pipeline_payload, headers=headers)
|
| 195 |
path = st.session_state.input_index+"/_search?search_pipeline=rag-search-pipeline"
|
| 196 |
else:
|
| 197 |
+
if(st.session_state.input_is_rerank):
|
| 198 |
path = st.session_state.input_index+"/_search?search_pipeline=rerank_pipeline_rag"
|
| 199 |
else:
|
| 200 |
path = st.session_state.input_index+"/_search"
|