NickNYU commited on
Commit
7607fec
1 Parent(s): 3dae580

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def main():
47
  length_function=len
48
  )
49
  texts = text_splitter.split_documents(data)
50
- embeddings = OpenAIEmbeddings()
51
  VectorStore = FAISS.from_texts([t.page_content for t in texts], embedding=embeddings)
52
  with open(f"{store_name}.pkl", "wb") as f:
53
  pickle.dump(VectorStore, f)
 
47
  length_function=len
48
  )
49
  texts = text_splitter.split_documents(data)
50
+ embeddings = OpenAIEmbeddings(chunk_size = 1)
51
  VectorStore = FAISS.from_texts([t.page_content for t in texts], embedding=embeddings)
52
  with open(f"{store_name}.pkl", "wb") as f:
53
  pickle.dump(VectorStore, f)