Add DATA_PATH env var support
This commit is contained in:
@ -30,6 +30,8 @@ class KnowledgeVectorStore:
|
|||||||
if persist_dir is None:
|
if persist_dir is None:
|
||||||
if os.path.exists("/data"):
|
if os.path.exists("/data"):
|
||||||
persist_dir = "/data/chroma_db"
|
persist_dir = "/data/chroma_db"
|
||||||
|
elif os.environ.get("DATA_PATH"):
|
||||||
|
persist_dir = os.environ.get("DATA_PATH")
|
||||||
else:
|
else:
|
||||||
persist_dir = "./data/chroma_db"
|
persist_dir = "./data/chroma_db"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user