-
Notifications
You must be signed in to change notification settings - Fork 229
Notebook to try out MMR on a fashion data set #470
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
Notebook to try out MMR on a fashion data set #470
Conversation
Found 2 changed notebooks. Review the changes at https://app.gitnotebooks.com/elastic/elasticsearch-labs/pull/470 |
03c91a5
to
927ed96
Compare
927ed96
to
bcf8c97
Compare
…ation on meta information such as brands.
43b995f
to
a0204a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the code examples make sense to me - just had some suggestions on how we can render the preview more nicely
"3. Search items with a broad search term\n", | ||
"4. Apply result diversification with the MMR algorithm to the results.\n", | ||
"\n", | ||
"Check out our blog post on this topic to learn more about " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we will update this later with the actual link? once the blog post is available?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am adding the link as it will be, that way we don't forget 👍
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"Requirement already satisfied: anyio==4.9.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 1)) (4.9.0)\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed them 👍
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## 9. Reranking with Maximum Marginal Relevance (MMR)\\n\\nMMR is a diversity-promoting algorithm that balances:\\n- **Relevance**: How well items match the query\\n- **Diversity**: How different items are from each other\\n\\nThe algorithm iteratively selects items that are relevant to the query but different from already selected items." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Fixed.
1bcba61
to
1603a80
Compare
Notebook for search lab article: https://github.com/elastic/search-labs-elastic-co/issues/1594