Skip to content

Commit 3dca1ac

Browse files
committed
run black
1 parent 2b57049 commit 3dca1ac

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

app/backend/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,9 @@ async def setup_clients():
637637

638638
current_app.config[CONFIG_GPT4V_DEPLOYED] = bool(USE_GPT4V)
639639
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+
)
641643
current_app.config[CONFIG_VECTOR_SEARCH_ENABLED] = os.getenv("USE_VECTORS", "").lower() != "false"
642644
current_app.config[CONFIG_USER_UPLOAD_ENABLED] = bool(USE_USER_UPLOAD)
643645
current_app.config[CONFIG_LANGUAGE_PICKER_ENABLED] = ENABLE_LANGUAGE_PICKER

app/backend/approaches/approach.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ async def search(
149149
use_semantic_captions: bool,
150150
minimum_search_score: Optional[float],
151151
minimum_reranker_score: Optional[float],
152-
use_query_rewriting: Optional[bool] = None
152+
use_query_rewriting: Optional[bool] = None,
153153
) -> List[Document]:
154154
search_text = query_text if use_text_search else ""
155155
search_vectors = vectors if use_vector_search else []

app/backend/approaches/chatreadretrieveread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ async def run_until_final_call(
148148
use_semantic_captions,
149149
minimum_search_score,
150150
minimum_reranker_score,
151-
use_query_rewriting
151+
use_query_rewriting,
152152
)
153153

154154
# STEP 3: Generate a contextual and content specific answer using the search results and chat history

app/backend/approaches/chatreadretrievereadvision.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async def run_until_final_call(
152152
use_semantic_captions,
153153
minimum_search_score,
154154
minimum_reranker_score,
155-
use_query_rewriting
155+
use_query_rewriting,
156156
)
157157

158158
# STEP 3: Generate a contextual and content specific answer using the search results and chat history

app/backend/approaches/retrievethenread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async def run(
9090
use_semantic_captions,
9191
minimum_search_score,
9292
minimum_reranker_score,
93-
use_query_rewriting
93+
use_query_rewriting,
9494
)
9595

9696
# Process results

app/backend/approaches/retrievethenreadvision.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ async def run(
109109
use_semantic_captions,
110110
minimum_search_score,
111111
minimum_reranker_score,
112-
use_query_rewriting
112+
use_query_rewriting,
113113
)
114114

115115
# Process results

0 commit comments

Comments
 (0)