Skip to content

Commit

Permalink
automate database creation
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEdmondson1234 committed Mar 10, 2024
1 parent 8864ba2 commit 841e6fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/llm_config.yaml
Expand Up @@ -32,7 +32,7 @@ edmonbrain_vertex:
region: europe-west1
cluster: cluster_name
instance: instance_name
database: database_name
database: database_name # if not included will default to 'db_<project_id>'
# ip_type: PUBLIC or PRIVATE
codey:
llm: codey
Expand Down
2 changes: 1 addition & 1 deletion setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages

# Define your base version
version = '0.21.22'
version = '0.21.23'

setup(
name='sunholo',
Expand Down
2 changes: 1 addition & 1 deletion sunholo/components/vectorstore.py
Expand Up @@ -91,7 +91,7 @@ def pick_vectorstore(vs_str, vector_name, embeddings):
region=alloydb_config["region"],
cluster=alloydb_config["cluster"],
instance=alloydb_config["instance"],
database=alloydb_config["database"],
database=alloydb_config.get("database") or f'db_{alloydb_config["project_id"]}',
ip_type=alloydb_config.get("ip_type") or IPTypes.PRIVATE
)

Expand Down

0 comments on commit 841e6fb

Please sign in to comment.