Adityabhaskar commited on
Commit
ec25353
·
verified ·
1 Parent(s): f837f58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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={"sheet_name": sheet_name})
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