ShivanshMathur007 commited on
Commit
90f5e23
1 Parent(s): 5b2d232

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=1500 , chunk_overlap=500)
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=2000 , chunk_overlap=500)
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)