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

Feat intelligent ranking #227

Closed

Conversation

ivan-tse
Copy link
Contributor

@ivan-tse ivan-tse commented Jun 5, 2024

Description

Adds PersonalizedRankingV2 recipe to personalize intelligent ranking plugin. Example of change when creating pipeline with the new recipe:
curl -X PUT "http://localhost:9200/_search/pipeline/intelligent_ranking" -u 'admin:admin' --insecure -H 'Content-Type: application/json' -d'
{
"description": "A pipeline to apply custom reranking",
"response_processors" : [
{
"personalized_search_ranking" : {
"campaign_arn" : "arn:aws:personalize:us-east-1:080258283992:campaign/opensearch-campaign",
"item_id_field" : "",
"recipe" : "aws-personalized-ranking-v2",
"weight" : "0.25",
"iam_role_arn": "",
"aws_region": "us-east-1"
}
}
]
}'

Testing

./gradlew build and tested locally by running above command

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ivan-tse ivan-tse closed this Jun 5, 2024
@ivan-tse ivan-tse deleted the feat-intelligent-ranking branch June 5, 2024 22:50
@ivan-tse ivan-tse restored the feat-intelligent-ranking branch June 5, 2024 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant