-
Notifications
You must be signed in to change notification settings - Fork 270
DOC-5552 Jedis vector set embedding examples #2142
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
Conversation
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.
Just a few minor comments, which I'll leave in your capable hands. Approved.
| string using the helper method. Use the `byte` string representation when you are | ||
| indexing hash objects (as we are here), but use the array of `float` directly for |
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.
| string using the helper method. Use the `byte` string representation when you are | |
| indexing hash objects (as we are here), but use the array of `float` directly for | |
| string using the helper method. Use the `byte` string representation when indexing hash objects (as you're doing here), but use the array of `float` directly for |
|
|
||
| List<String> basicResults = jedis.vsim("famousPeople", actorsEmbedding); | ||
| System.out.println(basicResults); | ||
| // >>> [Masako Natsume, Chaim Topol, Linus Pauling, Marie Fredriksson, Maryam Mirzakhani, Marie Curie, Freddie Mercury, Paul Erdos] |
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.
This line is very long and produces a horizontal scroll bar in the rendered example.
|
|
||
| List<String> entertainerResults = jedis.vsim("famousPeople", entertainerEmbedding); | ||
| System.out.println(entertainerResults); | ||
| // >>> [Freddie Mercury, Chaim Topol, Linus Pauling, Marie Fredriksson, Masako Natsume, Paul Erdos, Maryam Mirzakhani, Marie Curie] |
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.
Horizontal scroll, as before.
|
@dwdougherty Suggestions applied (I thought I'd got rid of "we" everywhere in these, but apparently not). Thanks for the review :-) |
Jedis version of the vector sets embedding page.
BONUS FEATURE! The embedding model used in the old Jedis vector search example was dodgy and was not using the same embedding model as the other similar pages. This has now been fixed and the new vector sets page uses the same updated embedding model.