Skip to content

Commit b58ad2b

Browse files
final
note: tests will fail as long as the dump in genai page is on aligned store
1 parent 9f70ea0 commit b58ad2b

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

modules/ROOT/pages/functions/vector.adoc

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,18 @@ Vector functions allow you to construct xref:values-and-types/vector.adoc[`VECTO
1212
.Details
1313
|===
1414
| *Syntax* 3+| `vector(vectorValue, dimension, coordinateType)`
15-
| *Description* 3+| Constructs a `VECTOR` value.
15+
| *Description* 3+| Constructs a xref:values-and-types/vector.adoc[`VECTOR`] value.
1616
.4+| *Arguments* | *Name* | *Type* | *Description*
1717
| `vectorValue` | `STRING` \| `LIST<INTEGER \| FLOAT>` | The numeric values to create the vector coordinates from.
1818
| `dimension` | `INTEGER` | The dimension (number of coordinates) of the vector.
1919
| `coordinateType` | `[INTEGER64, INTEGER32, INTEGER16, INTEGER8, FLOAT64, FLOAT32]` | The type of each coordinate in the vector.
20-
| *Returns* 3+| `VECTOR`
20+
| *Returns* 3+| xref:values-and-types/vector.adoc[`VECTOR`]
2121
|===
2222

23-
[NOTE]
24-
`VECTOR` values can be xref:values-and-types/vector.adoc#store-vector-properties[stored as properties].
25-
As such, the `vector()` function can be used to store the embeddings generated by Neo4j's xref:genai-integrations.adoc[GenAI plugin] as `VECTOR` property values.
26-
`VECTOR` properties can be semantically searched by a xref:indexes/semantic-indexes/vector-indexes.adoc[vector index].
27-
2823
.Considerations
2924
|===
3025

26+
| `VECTOR` values can be xref:values-and-types/vector.adoc#store-vector-properties[stored as properties].
3127
| If a `STRING` is used in `vectorValue`, it must start and end with square brackets (`[]`).
3228
The values inside the brackets must be comma-separated numbers, represented in either decimal or scientific notation.
3329
| `null`, `NaN`, and `Infinity` values are not allowed as coordinate values.
@@ -117,8 +113,6 @@ RETURN vector(null, 3, FLOAT32) AS nullVectorValue,
117113
| *Returns* 3+| `FLOAT`
118114
|===
119115

120-
For more details, see the {link-vector-indexes}#similarity-functions[vector index documentation].
121-
122116
.Considerations
123117
|===
124118

@@ -133,6 +127,8 @@ For more details, see the {link-vector-indexes}#similarity-functions[vector inde
133127

134128
|===
135129

130+
For more details, see the {link-vector-indexes}#similarity-functions[vector index documentation].
131+
136132

137133
[[functions-similarity-euclidean]]
138134
== vector.similarity.euclidean()
@@ -147,7 +143,6 @@ For more details, see the {link-vector-indexes}#similarity-functions[vector inde
147143
| *Returns* 3+| `FLOAT`
148144
|===
149145

150-
For more details, see the {link-vector-indexes}#similarity-functions[vector index documentation].
151146

152147
.Considerations
153148
|===
@@ -163,6 +158,7 @@ For more details, see the {link-vector-indexes}#similarity-functions[vector inde
163158

164159
|===
165160

161+
For more details, see the {link-vector-indexes}#similarity-functions[vector index documentation].
166162

167163

168164
.k-Nearest Neighbors
@@ -298,8 +294,7 @@ RETURN vector_dimension_count(vector([1, 2, 3], 3, INTEGER)) AS size
298294
.Considerations
299295
|===
300296

301-
| The smaller the returned number, the more similar the `VECTOR` values.
302-
The larger the number, the more distant the vectors.
297+
| The smaller the returned number, the more similar the vectors; the larger the number, the more distant the vectors.
303298
This is in contrast to the similarity functions where the closer to `1` the result is the higher the degree of similarity.
304299

305300
|===

0 commit comments

Comments
 (0)