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 protos for Qdrant 1.12, add new endpoints #189

Merged
merged 8 commits into from
Oct 8, 2024
Merged

Conversation

JojiiOfficial
Copy link
Contributor

@JojiiOfficial JojiiOfficial commented Oct 1, 2024

Updates the protos and rust structures.

A few examples of the new APIs (also included in the rustdoc):

let matrix = client
    .search_matrix_offsets(
        SearchMatrixPointsBuilder::new("collection_name")
           .filter(Filter::must(vec![Condition::matches(
               "color",
               "red".to_string(),
           )]))
           .sample(1000)
           .limit(10),
    )
    .await?;
let ten_countries_with_most_poins_in_europe = client
    .facet(
         FacetCountsBuilder::new("world_data", "country")
             .limit(10)
             .filter(Filter::must(vec![Condition::matches(
                 "continent",
                 "Europe".to_string(),
             )])),
     )
     .await
     .unwrap();

@JojiiOfficial JojiiOfficial marked this pull request as ready for review October 2, 2024 07:27
@generall
Copy link
Member

generall commented Oct 4, 2024

Could you please put examples into https://github.com/qdrant/rust-client/tree/master/tests/snippets as well

The idea is that they should be usable in our landing page and https://api.qdrant.tech/api-reference

@JojiiOfficial
Copy link
Contributor Author

Done!
Also added them here: qdrant/api-reference#33

@generall
Copy link
Member

generall commented Oct 4, 2024

@JojiiOfficial please don't change api-refernce just yet, it requires release

@timvisee timvisee changed the title update protos and rust structs Update protos for Qdrant 1.12, add new endpoints Oct 4, 2024
Copy link
Member

@timvisee timvisee left a comment

Choose a reason for hiding this comment

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

Thanks for including the on_disk change.

@timvisee timvisee merged commit 3fc27b9 into dev Oct 8, 2024
1 of 2 checks passed
timvisee pushed a commit that referenced this pull request Oct 8, 2024
* update protos and rust structs

* add client functions

* use new compile function

* recompile protos

* trigger recompiling

* add examples

* add example snippets

* Adjust GeoIndexParams and fix warnings when compiling tests
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