From 8cfc55f2c73042ddd9b44a072ec09298662eb2f9 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Mon, 29 Jan 2024 11:23:19 +0330 Subject: [PATCH] feat: Added the metadata logs! --- utils/query_engine/level_based_platform_query_engine.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/utils/query_engine/level_based_platform_query_engine.py b/utils/query_engine/level_based_platform_query_engine.py index 6e92421..9d0e6b5 100644 --- a/utils/query_engine/level_based_platform_query_engine.py +++ b/utils/query_engine/level_based_platform_query_engine.py @@ -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 @@ -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,