Skip to content

Commit 88466ea

Browse files
DOC-5552 applied PR feedback
1 parent 1a79e4b commit 88466ea

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

content/develop/clients/jedis/vecsearch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Use the `predict()` method of the `Predictor` object
151151
as shown below to create the embedding that represents the `content` field.
152152
The `predict()` method returns a `float[]` array which is then converted to a `byte`
153153
string using the helper method. Use the `byte` string representation when you are
154-
indexing hash objects (as we are here), but use the array of `float` directly for
154+
indexing hash objects (as in this example), but use the array of `float` directly for
155155
JSON objects (see [Differences with JSON objects](#differences-with-json-documents)
156156
below). Note that when you set the `embedding` field, you must use an overload
157157
of `hset()` that requires `byte` arrays for each of the key, the field name, and

local_examples/client-specific/jedis/HomeVecSets.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ final class Person {
133133

134134
List<String> basicResults = jedis.vsim("famousPeople", actorsEmbedding);
135135
System.out.println(basicResults);
136-
// >>> [Masako Natsume, Chaim Topol, Linus Pauling, Marie Fredriksson, Maryam Mirzakhani, Marie Curie, Freddie Mercury, Paul Erdos]
136+
// >>> [Masako Natsume, Chaim Topol, Linus Pauling, Marie Fredriksson,
137+
// >>> Maryam Mirzakhani, Marie Curie, Freddie Mercury, Paul Erdos]
137138
// STEP_END
138139

139140
// STEP_START limited_query
@@ -153,7 +154,8 @@ final class Person {
153154

154155
List<String> entertainerResults = jedis.vsim("famousPeople", entertainerEmbedding);
155156
System.out.println(entertainerResults);
156-
// >>> [Freddie Mercury, Chaim Topol, Linus Pauling, Marie Fredriksson, Masako Natsume, Paul Erdos, Maryam Mirzakhani, Marie Curie]
157+
// >>> [Freddie Mercury, Chaim Topol, Linus Pauling, Marie Fredriksson,
158+
// >>> Masako Natsume, Paul Erdos, Maryam Mirzakhani, Marie Curie]
157159
// STEP_END
158160

159161
float[] scienceEmbedding;

0 commit comments

Comments
 (0)