Skip to content

Commit

Permalink
feat: Added the metadata logs!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Jan 29, 2024
1 parent 8f98b46 commit 8cfc55f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils/query_engine/level_based_platform_query_engine.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import logging

from bot.retrievers.forum_summary_retriever import ForumBasedSummaryRetriever
from bot.retrievers.process_dates import process_dates
from bot.retrievers.utils.load_hyperparams import load_hyperparams
Expand Down Expand Up @@ -176,6 +178,13 @@ def prepare_engine_auto_filter(

dates_modified = process_dates(list(dates), d)

logging.info(
f"COMMUNITY_ID: {community_id} | "
f"summary retrieved {self.date_key}: {dates_modified} | "
f"summary retrieved {self.level1_key}: {list(level1_names)} | "
f"summary retrieved {self.level2_key}: {list(level2_names)}"
)

engine = self.prepare_platform_engine(
community_id=community_id,
query=query,
Expand Down

0 comments on commit 8cfc55f

Please sign in to comment.