Update app.py
Browse files
app.py
CHANGED
|
@@ -190,7 +190,7 @@ def create_vector_db(final_items):
|
|
| 190 |
|
| 191 |
# Add the new documents to the vector database, if there are any
|
| 192 |
if documents_to_add:
|
| 193 |
-
db.
|
| 194 |
documents=documents_to_add,
|
| 195 |
ids=ids_to_add
|
| 196 |
)
|
|
|
|
| 190 |
|
| 191 |
# Add the new documents to the vector database, if there are any
|
| 192 |
if documents_to_add:
|
| 193 |
+
db.upsert(
|
| 194 |
documents=documents_to_add,
|
| 195 |
ids=ids_to_add
|
| 196 |
)
|