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

[Cosmos] Hybrid Search query pipeline #38275

Open
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

simorenoh
Copy link
Member

@simorenoh simorenoh commented Nov 1, 2024

Adds support for performing full text search queries through the introduction of the hybrid search query pipeline. This consists of the newly added hybrid_search_aggregator, which performs the necessary query steps to obtain the needed results.

With these changes, the SDK can now interpret queries utilizing key functions like FullTextContains(), FullTextContainsAll(), FullTextContainsAny(), Order By Rank <FullTextFunction>(), and Order By Rank RRF().

The design doc for the implementation can be found here: Hybrid Search Doc.
The new README in this PR also has additional information.

Still missing in this PR at the moment:

  • Samples for both sync and async
  • Tests for both sync and async
  • Additional README information on how to run these queries.
  • Cleaning up/ aggregating some of the repeated logic.
  • Possible optimizations to query plan fetching - will probably be addressed in a separate PR.

@github-actions github-actions bot added the Cosmos label Nov 1, 2024
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@simorenoh simorenoh marked this pull request as ready for review November 5, 2024 21:25
@simorenoh simorenoh requested review from annatisch and a team as code owners November 5, 2024 21:25
sdk/cosmos/azure-cosmos/README.md Outdated Show resolved Hide resolved
sdk/cosmos/azure-cosmos/README.md Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants