anl139 commited on
Commit
afb88fe
·
verified ·
1 Parent(s): a256849

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ def split_document_with_metadata(document):
86
  return [Document(page_content=chunk, metadata=document.metadata) for chunk in chunks]
87
 
88
  all_splits = []
89
- for doc in all_documents:
90
  all_splits.extend(split_document_with_metadata(doc))
91
  # -------------------------------
92
  # Set Up Retrievers
 
86
  return [Document(page_content=chunk, metadata=document.metadata) for chunk in chunks]
87
 
88
  all_splits = []
89
+ for doc in data:
90
  all_splits.extend(split_document_with_metadata(doc))
91
  # -------------------------------
92
  # Set Up Retrievers