Spaces:
Runtime error
Runtime error
Update model_pipelineV2.py
Browse files- model_pipelineV2.py +1 -1
model_pipelineV2.py
CHANGED
@@ -18,7 +18,7 @@ class ModelPipeLine:
|
|
18 |
DEFAULT_DOCUMENT_PROMPT = PromptTemplate.from_template(template="{page_content}")
|
19 |
def __init__(self):
|
20 |
self.curr_dir = os.path.dirname(__file__)
|
21 |
-
self.knowledge_dir = os.path.join(os.path.dirname(os.path.dirname(self.curr_dir))
|
22 |
self.prompt_dir = os.path.join(os.path.dirname(os.path.dirname(self.curr_dir)), 'src','prompts')
|
23 |
self.child_splitter = RecursiveCharacterTextSplitter(chunk_size=200)
|
24 |
self.parent_splitter = RecursiveCharacterTextSplitter(chunk_size=500)
|
|
|
18 |
DEFAULT_DOCUMENT_PROMPT = PromptTemplate.from_template(template="{page_content}")
|
19 |
def __init__(self):
|
20 |
self.curr_dir = os.path.dirname(__file__)
|
21 |
+
self.knowledge_dir = os.path.join(os.path.dirname(os.path.dirname(self.curr_dir)))
|
22 |
self.prompt_dir = os.path.join(os.path.dirname(os.path.dirname(self.curr_dir)), 'src','prompts')
|
23 |
self.child_splitter = RecursiveCharacterTextSplitter(chunk_size=200)
|
24 |
self.parent_splitter = RecursiveCharacterTextSplitter(chunk_size=500)
|