Skip to content

Commit

Permalink
Enabled passing postgres connection details (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecosta90 authored Mar 7, 2024
1 parent 0d20796 commit 20b9cf4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions engine/clients/pgvector/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
PGVECTOR_PORT = 9200
PGVECTOR_DB = "postgres"
PGVECTOR_USER = "postgres"
PGVECTOR_PASSWORD = "passwd"
import os

PGVECTOR_PORT = int(os.getenv("PGVECTOR_PORT", 9200))
PGVECTOR_DB = os.getenv("PGVECTOR_DB", "postgres")
PGVECTOR_USER = os.getenv("PGVECTOR_USER", "postgres")
PGVECTOR_PASSWORD = os.getenv("PGVECTOR_PASSWORD", "passwd")


def get_db_config(host, connection_params):
Expand Down

0 comments on commit 20b9cf4

Please sign in to comment.