ragV98 commited on
Commit
f8625a7
·
1 Parent(s): 931c4da
components/generators/daily_feed.py CHANGED
@@ -38,7 +38,14 @@ def load_all_documents_grouped_by_topic() -> Dict[str, List[str]]:
38
  vector_store = get_upstash_vector_store()
39
  print("💡 Successfully retrieved Upstash vector store.")
40
 
41
- for topic, key in zip(TOPIC_KEYS):
 
 
 
 
 
 
 
42
  try:
43
  # Upstash VectorStore expects the filter value to match the exact string
44
  # of the topic as it was indexed. Make sure your 'topic' metadata
 
38
  vector_store = get_upstash_vector_store()
39
  print("💡 Successfully retrieved Upstash vector store.")
40
 
41
+ # --- ADD THESE PRINT STATEMENTS ---
42
+ print(f"DEBUG: TOPICS = {TOPICS}")
43
+ print(f"DEBUG: TOPIC_KEYS = {TOPIC_KEYS}")
44
+ print(f"DEBUG: Length of TOPICS = {len(TOPICS)}")
45
+ print(f"DEBUG: Length of TOPIC_KEYS = {len(TOPIC_KEYS)}")
46
+ # ----------------------------------
47
+
48
+ for topic, key in zip(TOPICS, TOPIC_KEYS):
49
  try:
50
  # Upstash VectorStore expects the filter value to match the exact string
51
  # of the topic as it was indexed. Make sure your 'topic' metadata