let's see
Browse files
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("💡
|
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 |
-
|
|
|
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 |
|