Skip to content

Conversation

@andy-stark-redis
Copy link
Contributor

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.

@andy-stark-redis andy-stark-redis requested a review from a team September 17, 2025 12:31
@andy-stark-redis andy-stark-redis self-assigned this Sep 17, 2025
@andy-stark-redis andy-stark-redis added the clients Client library docs label Sep 17, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Sep 17, 2025

DOC-5552

Copy link
Collaborator

@dwdougherty dwdougherty left a 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.

Comment on lines 153 to 154
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
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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]
Copy link
Collaborator

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]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Horizontal scroll, as before.

@andy-stark-redis
Copy link
Contributor Author

@dwdougherty Suggestions applied (I thought I'd got rid of "we" everywhere in these, but apparently not). Thanks for the review :-)

@andy-stark-redis andy-stark-redis merged commit 951c28f into main Sep 17, 2025
5 checks passed
@andy-stark-redis andy-stark-redis deleted the DOC-5552-jedis-vec-emb branch September 17, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients Client library docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants