SwatGarg commited on
Commit
bb3b6fe
1 Parent(s): bfe86ba

Update model_pipelineV2.py

Browse files
Files changed (1) hide show
  1. 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)), 'data','Knowledge_base')
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)