Skip to content

Commit

Permalink
bugfix/vectorstores: weaviate: use correct client creator
Browse files Browse the repository at this point in the history
  • Loading branch information
taigrr committed Jan 18, 2025
1 parent 71ded3c commit d6af34a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vectorstores/weaviate/weaviate.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ func New(opts ...Option) (Store, error) {
if s.apiKey != nil {
headers["Authorization"] = fmt.Sprintf("Bearer %s", *s.apiKey)
}
s.client = weaviate.New(weaviate.Config{
s.client, err = weaviate.NewClient(weaviate.Config{
Scheme: s.scheme,
Host: s.host,
Headers: headers,
AuthConfig: s.authConfig,
ConnectionClient: s.connectionClient,
})

return s, nil
return s, err
}

// AddDocuments creates vector embeddings from the documents using the embedder
Expand Down

0 comments on commit d6af34a

Please sign in to comment.