ragV98 commited on
Commit
a1280d9
·
1 Parent(s): 95b9e03
components/generators/daily_feed.py CHANGED
@@ -36,7 +36,7 @@ def load_all_documents_grouped_by_topic() -> Dict[str, List[str]]:
36
 
37
  try:
38
  vector_store = get_upstash_vector_store()
39
- print("💡 yay Successfully retrieved Upstash vector store.")
40
 
41
  for topic, key in zip(TOPICS, TOPIC_KEYS):
42
  try:
@@ -58,7 +58,8 @@ def load_all_documents_grouped_by_topic() -> Dict[str, List[str]]:
58
  filters=filters # Apply the metadata filter
59
  )
60
 
61
- print(f"🔎 Querying Upstash for topic: '{topic}' with filters: {filters.to_dict()}")
 
62
  result = vector_store.query(query)
63
  print(f"➡️ Found {len(result.nodes)} nodes for topic: '{topic}'.")
64
 
 
36
 
37
  try:
38
  vector_store = get_upstash_vector_store()
39
+ print("💡 Successfully retrieved Upstash vector store.")
40
 
41
  for topic, key in zip(TOPICS, TOPIC_KEYS):
42
  try:
 
58
  filters=filters # Apply the metadata filter
59
  )
60
 
61
+ # Removed the problematic .to_dict() call
62
+ print(f"🔎 Querying Upstash for topic: '{topic}'")
63
  result = vector_store.query(query)
64
  print(f"➡️ Found {len(result.nodes)} nodes for topic: '{topic}'.")
65