-
Notifications
You must be signed in to change notification settings - Fork 25
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
Collections v3 client #102
Merged
Merged
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
Great to see you again! Thanks for the contribution. |
…into collections/main
…roperties parsing
…dline for grpc client
Collections/add proxying support
…y types, make generate required param of generate queries
…yping behaviour with named vectors
parkerduckworth
approved these changes
Jun 26, 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.
This PR introduces the
v3
collections client as a complete rewrite of the API surface to match thePYv4
client's new collections API. It makes use of all three (REST
,GQL
,gRPC
) of Weaviate's APIs when offering its functionality. As such, there are several instances where this API depends on the builders of the previous API, especially when working with functionality that is only available through theREST
orGQL
APIs.Key features added in this API are:
.collections
namespace within theclient
object from which all the new functionality is accessible, e.g.client.collections.get('MyCollection')
Collection
object within which exist several namespaces for accessing key core Weaviate functionality:.aggregate
for performing queries using theAggregate
/v1/graphql
query.backup
for managing backups through the/v1/backups
endpoint.config
for managing a collection's configuration through the/v1/schema
endpoint.data
for managing a collection's data objects, e.g. CUD ops, through the/v1/objects
endpoint, theweaviate.v1.weaviate.BatchObjects
gRPC method (for.insertMany
), and theweaviate.v1.weaviate.BatchDelete
gRPC method (for.deleteMany
).filter
for defining fully generic filters for queries and.data.deleteMany
that provides type safety given a user-provided generic.generate
for querying objects from a collection with generative capabilities through theweaviate.v1.weaviate.Search
gRPC method.metrics
for defining fully generic metrics objects for aggregations that provides type safety given a user-provided generic.query
for querying objects from a collection without generative capabilities through theweaviate.v1.weaviate.Search
gRPC method.sort
for defining fully generic sorting constraints for queries that provides type safety given a user-provided generic.tenants
for managing the tenants of a collection through/v1/tenants
endpoint and theweaviate.v1.weaviate.TenantsGet
gRPC methodThe new API is also fully generic meaning that there are no instances of
Record<string, Any>
in the codebase (and if there are this is a mistake!). Users should have fine-grained control over the types they use when working with the API and will be able to define their own complex typing systems on top of the client.