Spaces:
Sleeping
Sleeping
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 |
-
|
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
|