ShivanshMathur007 commited on
Commit
12fb977
1 Parent(s): e727359

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def MOP(path):
23
  docs=[]
24
  loader = PyPDFDirectoryLoader(path)
25
  docs = loader.load()
26
- text_splitter = RecursiveCharacterTextSplitter(chunk_size=800 , chunk_overlap=200)
27
  text_chunks = text_splitter.split_documents(docs)
28
  embeddings = HuggingFaceEmbeddings(model_name="thenlper/gte-base")
29
  vector_store = FAISS.from_documents(text_chunks, embedding=embeddings)
 
23
  docs=[]
24
  loader = PyPDFDirectoryLoader(path)
25
  docs = loader.load()
26
+ text_splitter = RecursiveCharacterTextSplitter(chunk_size=800 , chunk_overlap=400)
27
  text_chunks = text_splitter.split_documents(docs)
28
  embeddings = HuggingFaceEmbeddings(model_name="thenlper/gte-base")
29
  vector_store = FAISS.from_documents(text_chunks, embedding=embeddings)