Spaces:
Runtime error
Runtime error
first
Browse files- src/pdfchatbot.py +4 -4
src/pdfchatbot.py
CHANGED
@@ -33,11 +33,11 @@ class PDFChatBot:
|
|
33 |
self.model = None
|
34 |
self.pipeline = None
|
35 |
self.chain = None
|
36 |
-
self.chunk_size =
|
37 |
-
self.overlap_percentage =
|
38 |
-
self.max_chunks_in_context =
|
39 |
self.current_context = None
|
40 |
-
self.model_temperatue =
|
41 |
self.format_seperator="""\n\n--\n\n"""
|
42 |
self.pipe = None
|
43 |
#self.chunk_size_slider = chunk_size_slider
|
|
|
33 |
self.model = None
|
34 |
self.pipeline = None
|
35 |
self.chain = None
|
36 |
+
self.chunk_size = 512
|
37 |
+
self.overlap_percentage = 50
|
38 |
+
self.max_chunks_in_context = 2
|
39 |
self.current_context = None
|
40 |
+
self.model_temperatue = 0.5
|
41 |
self.format_seperator="""\n\n--\n\n"""
|
42 |
self.pipe = None
|
43 |
#self.chunk_size_slider = chunk_size_slider
|