Skip to content

Commit

Permalink
chore: set index dsn also
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Oct 18, 2024
1 parent c10b14e commit 70346d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
1 change: 1 addition & 0 deletions pkg/services/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func New(ctx context.Context, config Config) (*Services, error) {

if strings.HasPrefix(config.DSN, "postgres://") {
_ = os.Setenv("KNOW_VECTOR_DB", strings.Replace(config.DSN, "postgres://", "pgvector://", 1))
_ = os.Setenv("KNOW_INDEX_DSN", strings.Replace(config.DSN, "postgres://", "pgvector://", 1))
}

storageClient, restConfig, dbAccess, err := storage.Start(ctx, config.Config)
Expand Down

0 comments on commit 70346d9

Please sign in to comment.