Skip to content

Commit d80e7be

Browse files
committed
Formatting
1 parent 93cbdbc commit d80e7be

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

app/backend/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
CONFIG_ASK_APPROACH,
6161
CONFIG_ASK_VISION_APPROACH,
6262
CONFIG_AUTH_CLIENT,
63+
CONFIG_BING_SEARCH_CLIENT,
64+
CONFIG_BING_SEARCH_ENABLED,
6365
CONFIG_BLOB_CONTAINER_CLIENT,
6466
CONFIG_CHAT_APPROACH,
6567
CONFIG_CHAT_HISTORY_BROWSER_ENABLED,
@@ -82,8 +84,6 @@
8284
CONFIG_USER_BLOB_CONTAINER_CLIENT,
8385
CONFIG_USER_UPLOAD_ENABLED,
8486
CONFIG_VECTOR_SEARCH_ENABLED,
85-
CONFIG_BING_SEARCH_ENABLED,
86-
CONFIG_BING_SEARCH_CLIENT,
8787
)
8888
from core.authentication import AuthenticationHelper
8989
from core.sessionhelper import create_session_id

app/backend/approaches/chatreadretrieveread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
from approaches.approach import Document, ThoughtStep
1515
from approaches.chatapproach import ChatApproach
1616
from approaches.promptmanager import PromptManager
17-
from core.authentication import AuthenticationHelper
1817
from bing_client import AsyncBingClient
18+
from core.authentication import AuthenticationHelper
1919

2020

2121
class ChatReadRetrieveReadApproach(ChatApproach):

app/backend/approaches/chatreadretrievereadvision.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
from approaches.approach import ThoughtStep
1515
from approaches.chatapproach import ChatApproach
1616
from approaches.promptmanager import PromptManager
17+
from bing_client import AsyncBingClient
1718
from core.authentication import AuthenticationHelper
1819
from core.imageshelper import fetch_image
19-
from bing_client import AsyncBingClient
2020

2121

2222
class ChatReadRetrieveReadVisionApproach(ChatApproach):
@@ -85,7 +85,7 @@ async def run_until_final_call(
8585
use_vector_search = overrides.get("retrieval_mode") in ["vectors", "hybrid", None]
8686
use_semantic_ranker = True if overrides.get("semantic_ranker") else False
8787
use_semantic_captions = True if overrides.get("semantic_captions") else False
88-
use_bing_search = True if overrides.get("use_bing_search") else False
88+
# use_bing_search = True if overrides.get("use_bing_search") else False
8989
top = overrides.get("top", 3)
9090
minimum_search_score = overrides.get("minimum_search_score", 0.0)
9191
minimum_reranker_score = overrides.get("minimum_reranker_score", 0.0)

app/backend/approaches/retrievethenread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async def run(
6868
use_vector_search = overrides.get("retrieval_mode") in ["vectors", "hybrid", None]
6969
use_semantic_ranker = True if overrides.get("semantic_ranker") else False
7070
use_semantic_captions = True if overrides.get("semantic_captions") else False
71-
use_bing_search = True if overrides.get("use_bing_search") else False
71+
# use_bing_search = True if overrides.get("use_bing_search") else False
7272
top = overrides.get("top", 3)
7373
minimum_search_score = overrides.get("minimum_search_score", 0.0)
7474
minimum_reranker_score = overrides.get("minimum_reranker_score", 0.0)

app/backend/approaches/retrievethenreadvision.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async def run(
7777
use_vector_search = overrides.get("retrieval_mode") in ["vectors", "hybrid", None]
7878
use_semantic_ranker = True if overrides.get("semantic_ranker") else False
7979
use_semantic_captions = True if overrides.get("semantic_captions") else False
80-
use_bing_search = True if overrides.get("use_bing_search") else False
80+
# use_bing_search = True if overrides.get("use_bing_search") else False
8181
top = overrides.get("top", 3)
8282
minimum_search_score = overrides.get("minimum_search_score", 0.0)
8383
minimum_reranker_score = overrides.get("minimum_reranker_score", 0.0)

app/backend/bing_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
An async client for Bing Web Search API.
33
"""
44

5+
from typing import Optional
6+
57
import httpx
68
from pydantic import BaseModel, ConfigDict
7-
from typing import Any, Optional
89

910

1011
class WebPage(BaseModel):

0 commit comments

Comments
 (0)