File tree Expand file tree Collapse file tree 6 files changed +8
-6
lines changed Expand file tree Collapse file tree 6 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -637,7 +637,9 @@ async def setup_clients():
637
637
638
638
current_app .config [CONFIG_GPT4V_DEPLOYED ] = bool (USE_GPT4V )
639
639
current_app .config [CONFIG_SEMANTIC_RANKER_DEPLOYED ] = AZURE_SEARCH_SEMANTIC_RANKER != "disabled"
640
- current_app .config [CONFIG_QUERY_REWRITING_ENABLED ] = AZURE_SEARCH_QUERY_REWRITING == "true" and AZURE_SEARCH_SEMANTIC_RANKER != "disabled"
640
+ current_app .config [CONFIG_QUERY_REWRITING_ENABLED ] = (
641
+ AZURE_SEARCH_QUERY_REWRITING == "true" and AZURE_SEARCH_SEMANTIC_RANKER != "disabled"
642
+ )
641
643
current_app .config [CONFIG_VECTOR_SEARCH_ENABLED ] = os .getenv ("USE_VECTORS" , "" ).lower () != "false"
642
644
current_app .config [CONFIG_USER_UPLOAD_ENABLED ] = bool (USE_USER_UPLOAD )
643
645
current_app .config [CONFIG_LANGUAGE_PICKER_ENABLED ] = ENABLE_LANGUAGE_PICKER
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ async def search(
149
149
use_semantic_captions : bool ,
150
150
minimum_search_score : Optional [float ],
151
151
minimum_reranker_score : Optional [float ],
152
- use_query_rewriting : Optional [bool ] = None
152
+ use_query_rewriting : Optional [bool ] = None ,
153
153
) -> List [Document ]:
154
154
search_text = query_text if use_text_search else ""
155
155
search_vectors = vectors if use_vector_search else []
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ async def run_until_final_call(
148
148
use_semantic_captions ,
149
149
minimum_search_score ,
150
150
minimum_reranker_score ,
151
- use_query_rewriting
151
+ use_query_rewriting ,
152
152
)
153
153
154
154
# STEP 3: Generate a contextual and content specific answer using the search results and chat history
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ async def run_until_final_call(
152
152
use_semantic_captions ,
153
153
minimum_search_score ,
154
154
minimum_reranker_score ,
155
- use_query_rewriting
155
+ use_query_rewriting ,
156
156
)
157
157
158
158
# STEP 3: Generate a contextual and content specific answer using the search results and chat history
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ async def run(
90
90
use_semantic_captions ,
91
91
minimum_search_score ,
92
92
minimum_reranker_score ,
93
- use_query_rewriting
93
+ use_query_rewriting ,
94
94
)
95
95
96
96
# Process results
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ async def run(
109
109
use_semantic_captions ,
110
110
minimum_search_score ,
111
111
minimum_reranker_score ,
112
- use_query_rewriting
112
+ use_query_rewriting ,
113
113
)
114
114
115
115
# Process results
You can’t perform that action at this time.
0 commit comments