Spaces:
Runtime error
Runtime error
first
Browse files- 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((
|
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((50/100) * self.chunk_size)
|
52 |
text_splitter = RecursiveCharacterTextSplitter(
|
53 |
chunk_size=self.chunk_size,
|
54 |
chunk_overlap=overlap,
|