Spaces:
Sleeping
Sleeping
Pranjal Gupta
commited on
Commit
·
157b2e3
1
Parent(s):
1d93192
meta data bug fix
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def process_pdf(file_path):
|
|
| 45 |
|
| 46 |
# Ingest into the vector store
|
| 47 |
# Note: A docId is added to group these documents
|
| 48 |
-
vectorDB.add_documents(texts, [{"docId": "uploaded_doc"}] * len(texts))
|
| 49 |
gr.Info("PDF processed and ready for questions!")
|
| 50 |
|
| 51 |
# Your existing functions
|
|
|
|
| 45 |
|
| 46 |
# Ingest into the vector store
|
| 47 |
# Note: A docId is added to group these documents
|
| 48 |
+
vectorDB.add_documents(texts, metadatas=[{"docId": "uploaded_doc"}] * len(texts))
|
| 49 |
gr.Info("PDF processed and ready for questions!")
|
| 50 |
|
| 51 |
# Your existing functions
|