Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,12 +31,12 @@ try:
|
|
| 31 |
doc_count = collection.count()
|
| 32 |
|
| 33 |
if doc_count == 0:
|
| 34 |
-
|
| 35 |
|
| 36 |
print(f"✅ Connected to collection '{config.COLLECTION_NAME}' with {doc_count} documents")
|
| 37 |
|
| 38 |
except Exception as e:
|
| 39 |
-
|
| 40 |
|
| 41 |
|
| 42 |
class EmbeddingGemmaPrompts:
|
|
|
|
| 31 |
doc_count = collection.count()
|
| 32 |
|
| 33 |
if doc_count == 0:
|
| 34 |
+
print(f"Collection '{config.COLLECTION_NAME}' exists but is empty. Run ingest_studies.py to populate it.")
|
| 35 |
|
| 36 |
print(f"✅ Connected to collection '{config.COLLECTION_NAME}' with {doc_count} documents")
|
| 37 |
|
| 38 |
except Exception as e:
|
| 39 |
+
print(f"Collection '{config.COLLECTION_NAME}' not found. Run ingest_studies.py first. Error: {str(e)}")
|
| 40 |
|
| 41 |
|
| 42 |
class EmbeddingGemmaPrompts:
|