isayahc commited on
Commit
f4bba44
1 Parent(s): 4089bc6

using constants from config.py instead of initializing variables

Browse files
rag_app/structured_tools/structured_tools.py CHANGED
@@ -15,9 +15,7 @@ import chromadb
15
  import os
16
  from config import db, PERSIST_DIRECTORY, EMBEDDING_MODEL
17
 
18
- persist_directory = os.getenv('VECTOR_DATABASE_LOCATION')
19
- embedding_model = os.getenv("EMBEDDING_MODEL")
20
- if not os.path.exists(persist_directory):
21
  get_chroma_vs()
22
 
23
  @tool
 
15
  import os
16
  from config import db, PERSIST_DIRECTORY, EMBEDDING_MODEL
17
 
18
+ if not os.path.exists(PERSIST_DIRECTORY):
 
 
19
  get_chroma_vs()
20
 
21
  @tool