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

[@azure/cosmos] Add check for TOP/LIMIT in nonStreamingOrderBy queries #30503

Merged
merged 9 commits into from
Aug 1, 2024

Conversation

amanrao23
Copy link
Member

@amanrao23 amanrao23 commented Jul 23, 2024

Packages impacted by this PR

@azure/cosmos

Issues associated with this PR

Describe the problem that is addressed by this PR

  • This PR removes the support of float 16 from vector embedding data type

  • This PR adds support to block nonStreamingOrderBy queries which do not have a TOP or LIMIT+OFFSET present in the query. This check can be disabled by using allowUnboundedNonStreamingQueries flag in options.

  • An additional check is placed for internal buffer size. If calculated buffer size is greater than the default buffer size, an error is thrown. This is done as a safeguard from excessive memory consumption. Max buffer size can be increased using vectorSearchBufferSize in the options.

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Yes

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@amanrao23
Copy link
Member Author

/run az

@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

@azure/cosmos

Copy link
Member

@aditishree1 aditishree1 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@topshot99 topshot99 left a comment

Choose a reason for hiding this comment

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

check comments

Copy link
Member

@topshot99 topshot99 left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link
Member

@jeremymeng jeremymeng left a comment

Choose a reason for hiding this comment

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

LGTM

@amanrao23 amanrao23 requested a review from sajeetharan as a code owner August 1, 2024 08:23
@amanrao23 amanrao23 merged commit b1e2089 into main Aug 1, 2024
13 checks passed
@amanrao23 amanrao23 deleted the amanrao23/vector-search-fix branch August 1, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants