Update app.py
Browse files
app.py
CHANGED
@@ -145,7 +145,8 @@ def create_vector_db(final_items):
|
|
145 |
# Initialize the database
|
146 |
db = client.get_or_create_collection(name=collection_name)
|
147 |
if db is None:
|
148 |
-
|
|
|
149 |
documents_to_add = []
|
150 |
ids_to_add = []
|
151 |
|
|
|
145 |
# Initialize the database
|
146 |
db = client.get_or_create_collection(name=collection_name)
|
147 |
if db is None:
|
148 |
+
raise ValueError("Db not created!")
|
149 |
+
break
|
150 |
documents_to_add = []
|
151 |
ids_to_add = []
|
152 |
|