-
Notifications
You must be signed in to change notification settings - Fork 18
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
gql: Search with multiple target vectors and weights #318
Merged
antas-marcin
merged 21 commits into
weaviate:main
from
bevzzz:feature/multiple-vectors-per-target
Oct 31, 2024
Merged
gql: Search with multiple target vectors and weights #318
antas-marcin
merged 21 commits into
weaviate:main
from
bevzzz:feature/multiple-vectors-per-target
Oct 31, 2024
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
…arch + Extended Serializer.array to support nested arrays.
Great to see you again! Thanks for the contribution. |
I'll need to bump the version of the target container to v1.27 and update the integration tests to use the new feature before we merge. |
Updated integration test to use multiple target feature.
Previously BaseClient would "swallow" these errors, assuming HTTP 200 means a successful request. However, GraphQL specs allow it to send status 200 alongside a response body with a list of errors.
bevzzz
force-pushed
the
feature/multiple-vectors-per-target
branch
from
October 25, 2024 11:45
130ea05
to
4dfddc4
Compare
In v1.27 sending a replication request which requests more nodes than is available produces a different error message.
It seems that in v1.27 the "groupBy" property should be requested as well, otherwise the server returns fewer results than before.
This commit mirrors changes in the Go client: weaviate/weaviate-go-client@6fa31b9
WeaviateClass has a default filter strategy "sweeping"
In contrast to the previous implementation, this approach inverts the dependencies: BaseClient provides a mechanism for an external class to extract errors from "custom" locations in the response body, while staying entirely unaware of the concrete classes that might do that.
Fix invalid @returns tag in Javadoc
src/main/java/io/weaviate/client/v1/misc/model/VectorIndexConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/io/weaviate/client/v1/misc/model/ReplicationConfig.java
Outdated
Show resolved
Hide resolved
BaseClient will give GraphQLResponse special treatment
- Renamed FilterStrategy enum - Dropped default values for filtera and deletion strategy configs
src/test/java/io/weaviate/integration/client/schema/ClientSchemaTest.java
Show resolved
Hide resolved
antas-marcin
approved these changes
Oct 31, 2024
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.
Closes #304
This PR adds support for "multiple vectors per target" and "multiple weights per target" features in search, using the PR from go-client as a reference.
Additionally:
BaseClient
to report GraphQL errors returned in responses with status 2001.27
DeletionStrategy
andFilterStrategy
in class configurationDetails
How is this tested?
Added unit tests for
Targets
andNearVectorArgument
builders.