Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add external pgvector #79

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ helm install my-release dify/dify
- [x] object storage
- [x] weaviate
- [x] qdrant
- [X] milvus
- [x] milvus
- [x] pgvector

## Contributors
<a href="https://github.com/borispolonsky/dify-helm/graphs/contributors">
Expand Down
8 changes: 8 additions & 0 deletions charts/dify/templates/config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,14 @@ QDRANT_URL: {{ .Values.externalQdrant.endpoint }}
# The Qdrant clinet timeout setting.
QDRANT_CLIENT_TIMEOUT: "20"
# The DSN for Sentry error reporting. If not set, Sentry error reporting will be disabled.
{{- else if .Values.externalPgvector.enabled}}
# Pgvector configuration Only available when VECTOR_STORE is `pgvector`.
VECTOR_STORE: pgvector
PGVECTOR_HOST: {{ .Values.externalPgvector.address }}
PGVECTOR_PORT: {{ .Values.externalPgvector.port | toString | quote }}
PGVECTOR_DATABASE: {{ .Values.externalPgvector.dbName }}
# DB_USERNAME: {{ .Values.externalPgvector.username }}
# DB_PASSWORD: {{ .Values.externalPgvector.password }}
{{- else if .Values.externalMilvus.enabled}}
# Milvus configuration Only available when VECTOR_STORE is `milvus`.
VECTOR_STORE: milvus
Expand Down
4 changes: 4 additions & 0 deletions charts/dify/templates/credentials.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ CELERY_BROKER_URL: {{ printf "redis://:%s@%s:%v/1" .auth.password $redisHost .ma
WEAVIATE_API_KEY: {{ .Values.externalWeaviate.apiKey | b64enc | quote }}
{{- else if .Values.externalQdrant.enabled }}
QDRANT_API_KEY: {{ .Values.externalQdrant.apiKey | b64enc | quote }}
{{- else if .Values.externalPgvector.enabled}}
PGVECTOR_USER: {{ .Values.externalPgvector.username | b64enc | quote }}
# The pgvector password.
PGVECTOR_PASSWORD: {{ .Values.externalPgvector.password | b64enc | quote }}
{{- else if .Values.externalMilvus.enabled}}
MILVUS_USER: {{ .Values.externalMilvus.user | b64enc | quote }}
# The milvus password.
Expand Down
11 changes: 11 additions & 0 deletions charts/dify/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2627,6 +2627,17 @@ externalWeaviate:
endpoint: "http://weaviate:8080"
apiKey: "WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih"

###################################
# External Pgvector
# - these configs take effect when `externalPgvector.enabled` is true
###################################
externalPgvector:
enabled: false
username: "postgres"
password: "difyai123456"
address: "pgvector"
port: 5432
dbName: dify

###################################
# External Qdrant
Expand Down