Skip to content

Commit

Permalink
fix:chromadb persist_path compatible with old version
Browse files Browse the repository at this point in the history
  • Loading branch information
Aries-ckt committed Oct 9, 2023
1 parent 4aa825d commit 813e226
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pilot/vector_store/chroma_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def __init__(self, ctx: {}) -> None:

self.ctx = ctx
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(
chroma_path, ctx["vector_store_name"] + ".vectordb"
Expand Down

0 comments on commit 813e226

Please sign in to comment.