Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/dispatch/tag/recommender.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ def get_recommendations(
try:
correlation_dataframe = load_model(organization_slug, project_slug, model_name)
except FileNotFoundError:
log.warning(f"No model file found. ProjectName: {project_slug} ModelName: {model_name}")
log.warning(
f"Unable to recommend tag(s). No correlation dataframe file found for project name {project_slug} and model name {model_name}."
)
return []

recommendations_dataframe = pd.DataFrame()
Expand All @@ -167,7 +169,7 @@ def get_recommendations(
tags.append(tag_service.get(db_session=db_session, tag_id=int(t)))

log.debug(
f"Making tag recommendation. RecommendedTags: {','.join([t.name for t in tags])} ModelName: {model_name}"
f"Recommending the following tag(s) for model name {model_name}: {','.join([t.name for t in tags])}"
)
return tags

Expand Down