Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ class ExcelAIQuerySystem:
|
|
45 |
markdown_text = df.to_markdown(index=False)
|
46 |
|
47 |
# Create documents and split them into chunks
|
48 |
-
doc = Document(page_content=markdown_text, metadata={"
|
49 |
chunks = text_splitter.split_documents([doc])
|
50 |
|
51 |
# Create a FAISS vector store for the chunks
|
|
|
45 |
markdown_text = df.to_markdown(index=False)
|
46 |
|
47 |
# Create documents and split them into chunks
|
48 |
+
doc = Document(page_content=markdown_text, metadata={"source": sheet_name})
|
49 |
chunks = text_splitter.split_documents([doc])
|
50 |
|
51 |
# Create a FAISS vector store for the chunks
|