Skip to content

Commit

Permalink
Fix indexing model server port for warmup (#2767)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weves authored Oct 11, 2024
1 parent 1581d35 commit 35d32ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/danswer/background/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
from danswer.utils.variable_functionality import global_version
from danswer.utils.variable_functionality import set_is_ee_based_on_env_variable
from shared_configs.configs import INDEXING_MODEL_SERVER_HOST
from shared_configs.configs import INDEXING_MODEL_SERVER_PORT
from shared_configs.configs import LOG_LEVEL
from shared_configs.configs import MODEL_SERVER_PORT

logger = setup_logger()

Expand Down Expand Up @@ -494,7 +494,7 @@ def update_loop(
embedding_model = EmbeddingModel.from_db_model(
search_settings=search_settings,
server_host=INDEXING_MODEL_SERVER_HOST,
server_port=MODEL_SERVER_PORT,
server_port=INDEXING_MODEL_SERVER_PORT,
)
warm_up_bi_encoder(embedding_model=embedding_model)
logger.notice("First inference complete.")
Expand Down

0 comments on commit 35d32ea

Please sign in to comment.