Skip to content

Commit

Permalink
Merge pull request #27 from TogetherCrew/feat/add-summary-retriever-logs
Browse files Browse the repository at this point in the history
feat: Added logs for discord summary retriever!
  • Loading branch information
amindadgar authored Jan 29, 2024
2 parents a30fdad + bbae297 commit c6d79be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions utils/query_engine/discord_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 @@ -137,6 +139,12 @@ def prepare_discord_engine_auto_filter(
)

dates_modified = process_dates(list(dates), d)
logging.info(
f"COMMUNITY_ID: {community_id} | "
f"summary retrieved dates: {dates_modified} | "
f"summary retrieved threads: {list(threads)} |"
f" summary retrieved channels: {list(channels)}"
)

engine = prepare_discord_engine(
community_id=community_id,
Expand Down

0 comments on commit c6d79be

Please sign in to comment.