Skip to content

Commit

Permalink
Remove postgres vecs variables (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
NolanTrem authored Oct 2, 2024
1 parent 4b020ef commit f9b881d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/integration-test-workflow-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }}
POSTGRES_PORT: ${{ secrets.POSTGRES_PORT }}
POSTGRES_PROJECT_NAME: ${{ secrets.POSTGRES_PROJECT_NAME }}
POSTGRES_VECS_COLLECTION: ${{ secrets.POSTGRES_VECS_COLLECTION }}

steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 1 addition & 2 deletions py/compose.full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ services:
- POSTGRES_HOST=${POSTGRES_HOST:-postgres}
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
- POSTGRES_DBNAME=${POSTGRES_DBNAME:-postgres}
- POSTGRES_PROJECT_NAME=${POSTGRES_PROJECT_NAME:-${CONFIG_NAME:-vecs}}
- POSTGRES_VECS_COLLECTION=${POSTGRES_VECS_COLLECTION:-${CONFIG_NAME:-vecs}}
- POSTGRES_PROJECT_NAME=${POSTGRES_PROJECT_NAME:-r2r_default}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- OPENAI_API_BASE=${OPENAI_API_BASE:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
Expand Down
3 changes: 0 additions & 3 deletions py/core/providers/database/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ def __init__(
config.project_name
or config.vecs_collection # remove after deprecation
or os.getenv("POSTGRES_PROJECT_NAME")
or os.getenv(
"POSTGRES_VECS_COLLECTION"
) # remove after deprecation
)
if not project_name:
raise ValueError(
Expand Down

0 comments on commit f9b881d

Please sign in to comment.