oceansweep commited on
Commit
43cf6b0
1 Parent(s): 8a18d2a

Update App_Function_Libraries/DB/RAG_QA_Chat_DB.py

Browse files
App_Function_Libraries/DB/RAG_QA_Chat_DB.py CHANGED
@@ -28,14 +28,13 @@ def get_rag_qa_db_path():
28
  try:
29
  config_path = os.path.join(get_project_root(), 'Config_Files', 'config.txt')
30
  print(f"Attempting to read config from: {config_path}")
31
- config.read(config_path, encoding='utf-8')
32
  # Print the actual content of the file being read
33
  with open(config_path, 'r') as f:
34
  print("Raw config file contents:")
35
  print(f.read())
36
 
37
  config = configparser.ConfigParser()
38
- files_read = config.read(config_path)
39
  print(f"Config files read: {files_read}")
40
  print(f"Sections in config: {config.sections()}")
41
 
 
28
  try:
29
  config_path = os.path.join(get_project_root(), 'Config_Files', 'config.txt')
30
  print(f"Attempting to read config from: {config_path}")
 
31
  # Print the actual content of the file being read
32
  with open(config_path, 'r') as f:
33
  print("Raw config file contents:")
34
  print(f.read())
35
 
36
  config = configparser.ConfigParser()
37
+ files_read = config.read(config_path, encoding='utf-8')
38
  print(f"Config files read: {files_read}")
39
  print(f"Sections in config: {config.sections()}")
40