hanzla commited on
Commit
2007807
1 Parent(s): 98f32c0
Files changed (1) hide show
  1. src/pdfchatbot.py +1 -1
src/pdfchatbot.py CHANGED
@@ -48,7 +48,7 @@ class PDFChatBot:
48
  print("Embedding model loaded")
49
 
50
  def load_vectordb(self):
51
- overlap = int((50/100) * self.chunk_size)
52
  text_splitter = RecursiveCharacterTextSplitter(
53
  chunk_size=self.chunk_size,
54
  chunk_overlap=overlap,
 
48
  print("Embedding model loaded")
49
 
50
  def load_vectordb(self):
51
+ overlap = int((self.overlap_percentage/100) * self.chunk_size)
52
  text_splitter = RecursiveCharacterTextSplitter(
53
  chunk_size=self.chunk_size,
54
  chunk_overlap=overlap,