Skip to content

Commit

Permalink
Merge pull request #599 from cheshire-cat-ai/develop
Browse files Browse the repository at this point in the history
`cat/data` folder to store dbs and more easily mount docker a volume
  • Loading branch information
pieroit authored Dec 2, 2023
2 parents 2eaa194 + aee5b70 commit 0f7f06d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ venv

# DBs
long_term_memory
/core/local_vector_memory
local_vector_memory
/core/dormouse/*
*metadata.db
*metadata-v*.db
Expand Down
Empty file added core/cat/data/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion core/cat/db/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def __init__(self):
self.db = TinyDB(self.get_file_name())

def get_file_name(self):
tinydb_file = os.getenv("METADATA_FILE", "metadata.json")
tinydb_file = os.getenv("METADATA_FILE", "cat/data/metadata.json")
return tinydb_file

def get_db():
Expand Down
2 changes: 1 addition & 1 deletion core/cat/memory/vector_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(
setattr(self, collection_name, collection)

def connect_to_vector_memory(self) -> None:
db_path = "local_vector_memory/"
db_path = "cat/data/local_vector_memory/"
qdrant_host = os.getenv("QDRANT_HOST", db_path)

if len(qdrant_host) == 0 or qdrant_host == db_path:
Expand Down
2 changes: 1 addition & 1 deletion core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "Cheshire-Cat"
description = "Production ready AI assistant framework"
version = "1.4.0"
version = "1.4.1"
requires-python = ">=3.10"
license = { file="LICENSE" }
authors = [
Expand Down

0 comments on commit 0f7f06d

Please sign in to comment.