Skip to content

Commit

Permalink
Merge pull request #1109 from taigrr/pr-fixup-weaviate
Browse files Browse the repository at this point in the history
bugfix/vectorstores: weaviate: use correct client creator
  • Loading branch information
FluffyKebab authored Jan 28, 2025
2 parents a4e1e5a + e0b354c commit a3bccf0
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 a3bccf0

Please sign in to comment.