SamVidur commited on
Commit
fb8fbe6
·
verified ·
1 Parent(s): e8940f4

Update configure.py

Browse files
Files changed (1) hide show
  1. configure.py +2 -1
configure.py CHANGED
@@ -7,6 +7,7 @@ import json
7
  load_dotenv()
8
 
9
 
 
10
  def read_txt(path):
11
  with open(path, 'r') as f:
12
  document = f.read()
@@ -45,7 +46,7 @@ def llm_prompt():
45
  # Paths
46
  USER_DATA_PATH = "/home/surajracha/sameer/thon/user_data.json"
47
  # RAG_BASE_DIRECTORY = "/workspaces/codespaces-blank/Vidur_chat_bot/all_content"
48
- RAG_BASE_DIRECTORY = "all_content"
49
  RAG_CATEGORIES = ["Ayurveda", "Lifestyle", "psychology", "Yoga", "Mental_health"]
50
 
51
  # Prompt templates
 
7
  load_dotenv()
8
 
9
 
10
+ BASE_DIR = os.getcwd()
11
  def read_txt(path):
12
  with open(path, 'r') as f:
13
  document = f.read()
 
46
  # Paths
47
  USER_DATA_PATH = "/home/surajracha/sameer/thon/user_data.json"
48
  # RAG_BASE_DIRECTORY = "/workspaces/codespaces-blank/Vidur_chat_bot/all_content"
49
+ RAG_BASE_DIRECTORY = os.path.join(BASE_DIR, "all_content")
50
  RAG_CATEGORIES = ["Ayurveda", "Lifestyle", "psychology", "Yoga", "Mental_health"]
51
 
52
  # Prompt templates