Praveen76 commited on
Commit
c7b1c7d
·
verified ·
1 Parent(s): 404305b

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +10 -2
app/main.py CHANGED
@@ -18,8 +18,16 @@ print("str(root) :",str(root))
18
  print("parent :",parent)
19
 
20
  print("CWD :",os.getcwd())
 
21
  # Load relevant API Keys
22
- file_path = '../Config/API_KEYS.yml'
 
 
 
 
 
 
 
23
 
24
  with open(file_path, 'r') as file:
25
  api_keys = yaml.safe_load(file)
@@ -41,7 +49,7 @@ auth_token = auth_token
41
 
42
  print("====account_sid:=====",account_sid)
43
  # Define the persist directory
44
- persist_directory = './vector_db/chroma_v01'
45
 
46
  # Initialize the embeddings model
47
  embedding_model = OpenAIEmbeddings()
 
18
  print("parent :",parent)
19
 
20
  print("CWD :",os.getcwd())
21
+
22
  # Load relevant API Keys
23
+ file_path = parent / 'Config/API_KEYS.yml'
24
+
25
+ # Define the persist directory
26
+ persist_directory = str(parent / 'vector_db/chroma_v01/')
27
+
28
+ print("file_path :",file_path)
29
+ print("persist_directory :",str(persist_directory))
30
+
31
 
32
  with open(file_path, 'r') as file:
33
  api_keys = yaml.safe_load(file)
 
49
 
50
  print("====account_sid:=====",account_sid)
51
  # Define the persist directory
52
+ # persist_directory = './vector_db/chroma_v01'
53
 
54
  # Initialize the embeddings model
55
  embedding_model = OpenAIEmbeddings()