mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-13 22:15:35 +00:00
fix:chromadb persist_path compatible with old version
This commit is contained in:
parent
4aa825d708
commit
813e2260a6
@ -17,7 +17,8 @@ class ChromaStore(VectorStoreBase):
|
|||||||
|
|
||||||
self.ctx = ctx
|
self.ctx = ctx
|
||||||
chroma_path = ctx.get(
|
chroma_path = ctx.get(
|
||||||
"CHROMA_PERSIST_PATH", os.getenv("CHROMA_PERSIST_PATH", os.getcwd())
|
"CHROMA_PERSIST_PATH",
|
||||||
|
os.path.join(os.path.dirname(os.path.dirname(__file__)), "data"),
|
||||||
)
|
)
|
||||||
self.persist_dir = os.path.join(
|
self.persist_dir = os.path.join(
|
||||||
chroma_path, ctx["vector_store_name"] + ".vectordb"
|
chroma_path, ctx["vector_store_name"] + ".vectordb"
|
||||||
|
Loading…
Reference in New Issue
Block a user