Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1579,7 +1579,7 @@ def process_pdf(pdf_file):
|
|
1579 |
# Embed and upload the chunks into the vector database
|
1580 |
chunk_ids = []
|
1581 |
for chunk in chunks:
|
1582 |
-
chunk_id =
|
1583 |
chunk_ids.append(chunk_id)
|
1584 |
|
1585 |
return f"Uploaded {len(chunks)} chunks to the vector database."
|
|
|
1579 |
# Embed and upload the chunks into the vector database
|
1580 |
chunk_ids = []
|
1581 |
for chunk in chunks:
|
1582 |
+
chunk_id = vectorstore.add_documents([chunk])
|
1583 |
chunk_ids.append(chunk_id)
|
1584 |
|
1585 |
return f"Uploaded {len(chunks)} chunks to the vector database."
|