Skip to content
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

Update client for v1.12 #58

Merged
merged 3 commits into from
Oct 8, 2024
Merged

Update client for v1.12 #58

merged 3 commits into from
Oct 8, 2024

Conversation

coszio
Copy link
Contributor

@coszio coszio commented Oct 4, 2024

Updates the client with the latest proto definitions, by following the contributing guide. Everything went smoothly 🏄

  • Adds sanity tests for the new facet and distance matrix endpoints
  • No new OneOf's to add manual helpers. The only new ones are only used for response types.

@coszio coszio requested a review from Anush008 October 4, 2024 15:12
Copy link
Member

@Anush008 Anush008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🙏🙏

@coszio
Copy link
Contributor Author

coszio commented Oct 4, 2024

Example usage of the new endpoints:

SearchMatrixOffsets

import (
	"context"

	"github.com/qdrant/go-client/qdrant"
)

client, err := qdrant.NewClient(&qdrant.Config{
	Host: "localhost",
	Port: 6334,
})

sample := uint64(10)
limit := uint64(10)
res, err := client.SearchMatrixOffsets(context.Background(), &qdrant.SearchMatrixPoints{
	CollectionName: "{collection_name}",
	Sample:         &sample,
	Limit:          &limit,
})

SearchMatrixPairs

import (
	"context"

	"github.com/qdrant/go-client/qdrant"
)

client, err := qdrant.NewClient(&qdrant.Config{
	Host: "localhost",
	Port: 6334,
})

sample := uint64(10)
limit := uint64(10)
res, err := client.SearchMatrixPairs(context.Background(), &qdrant.SearchMatrixPoints{
	CollectionName: "{collection_name}",
	Sample:         &sample,
	Limit:          &limit,
})

Facet

import (
	"context"

	"github.com/qdrant/go-client/qdrant"
)

client, err := qdrant.NewClient(&qdrant.Config{
	Host: "localhost",
	Port: 6334,
})

res, err := client.Facet(context.Background(), &qdrant.FacetCounts{
	CollectionName: "{collection_name}",
	Key:            "key",
})

@generall
Copy link
Member

generall commented Oct 4, 2024

don't seem to be used in facet

sample := uint64(10)
limit := uint64(10)

@coszio
Copy link
Contributor Author

coszio commented Oct 4, 2024

Sorry, too much copy paste

@coszio coszio merged commit 2f0e864 into master Oct 8, 2024
2 checks passed
@Anush008 Anush008 deleted the prepare-1.12 branch November 13, 2024 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants