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

Remove deprecated queries option in query() #272

Merged
merged 3 commits into from
Jan 13, 2024

Conversation

jhamon
Copy link
Collaborator

@jhamon jhamon commented Jan 13, 2024

Problem

There was an argument on the query() method for passing multiple queries at once. This has long been deprecated in the API and SDK, so it's time to remove it.

Solution

  • Clean up the queries option to both Index#query and IndexGRPC#query.
  • Remove code no longer needed to interpret the many forms these query options could take
  • Cleanup and simplify response parsing logic
  • Remove related tests passing queries kwarg

Type of Change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Test Plan

Recently added integration test suite gives high confidence queries still work after this change.

@jhamon jhamon requested a review from austin-denoble January 13, 2024 02:19
Copy link
Contributor

@austin-denoble austin-denoble left a comment

Choose a reason for hiding this comment

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

🚢

Returns: QueryResponse object which contains the list of the closest vectors as ScoredVector objects,
and namespace name.
"""

def _query_transform(item):
Copy link
Contributor

Choose a reason for hiding this comment

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

🗑️

@jhamon jhamon force-pushed the jhamon/remove-multiple-queries branch from e50036e to bf2224e Compare January 13, 2024 02:26
@jhamon jhamon merged commit d86dd1b into spruce Jan 13, 2024
64 checks passed
@jhamon jhamon deleted the jhamon/remove-multiple-queries branch January 13, 2024 02:42
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.

2 participants