-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
fix: Inconsistent use of v3 and v4 Weaviate clients #13719
Open
chrisk314
wants to merge
14
commits into
run-llama:main
Choose a base branch
from
chrisk314:fix/vector-store-weaviate-client
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
fix: Inconsistent use of v3 and v4 Weaviate clients #13719
chrisk314
wants to merge
14
commits into
run-llama:main
from
chrisk314:fix/vector-store-weaviate-client
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All references to Weaviate V3 clients (weaviate.Client) have been changed to Weaviate V4 clients (weaviate.WeaviateClient). Documentation has also been modified to reflect changes. Additionally, the `auth_config` argument to `WeaviateVectorStore.from_params` has been made optional to match the underlying `weaviate.WeaviateClient` signature.
dosubot
bot
added
the
size:S
This PR changes 10-29 lines, ignoring generated files.
label
May 24, 2024
chrisk314
changed the title
Fixup inconsistent use of v3 and v4 Weaviate clients
fix: inconsistent use of v3 and v4 Weaviate clients
May 24, 2024
chrisk314
changed the title
fix: inconsistent use of v3 and v4 Weaviate clients
fix: Inconsistent use of v3 and v4 Weaviate clients
May 24, 2024
dosubot
bot
added
size:M
This PR changes 30-99 lines, ignoring generated files.
and removed
size:S
This PR changes 10-29 lines, ignoring generated files.
labels
May 24, 2024
Requires review of existing documentation related to Weaviate integration and potential modification of examples to use V4 Weaviate clients. |
Is this PR planned to be merged ? It has been five months. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR addresses #13614 which relates to inconsistencies between Weaviate V3 and V4 clients in the
llama-index-vector-stores-weaviate
implementation. This causes bugs due to breaking API changes between V3 and V4.All references to Weaviate V3 clients (
weaviate.Client
) have been changed to Weaviate V4 clients (weaviate.WeaviateClient
). The current implementation expects Weaviate V4 clients. Documentation has also been modified to reflect changes.Additionally, the
auth_config
argument toWeaviateVectorStore.from_params
has been made optional to match the underlyingweaviate.WeaviateClient
signature.Fixes #13614
Version Bump?
Did I bump the version in the
pyproject.toml
file of the package I am updating? (Except for thellama-index-core
package)Type of Change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
I manually tested the code against a locally running Weaviate database instance. Specifically, I have run the updated example code in the
WeaviateVectorStore
docstring (changing the Weaviate url as required); and I have manually tested the modifiedWeaviateVectorStore.from_params
method with the same url. Due to the fact that adequately testing the code requires Weaviate infrastructure to test against, and no pattern is currently in place for such integration tests, I have not attempted to add such integration tests in this set of changes.Suggested Checklist:
make format; make lint
to appease the lint gods