Skip to content

Commit fcd52a2

Browse files
note float32 arithmetic
1 parent ab10c91 commit fcd52a2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/ROOT/pages/functions/vector.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ RETURN vector(null, 3, FLOAT32) AS nullVectorValue,
122122
| The implementation is the same of the latest vector index provider (`vector-2.0`).
123123
| The similarity score ranges from `0` and `1`, with scores closer to `1` indicating a higher degree of similarity.
124124
| The input arguments `a` and `b` accept `VECTOR` values as of Neo4j 2025.10.
125+
| Floating point operations are performed with `float32` arithmetic.
125126

126127
|===
127128

@@ -153,6 +154,7 @@ For more details, see the {link-vector-indexes}#similarity-functions[vector inde
153154
| The implementation is the same of the latest available vector index provider (`vector-2.0`).
154155
| The similarity score ranges from `0` and `1`, with scores closer to `1` indicating a higher degree of similarity.
155156
| The input arguments `a` and `b` accept `VECTOR` values as of Neo4j 2025.10.
157+
| Floating point operations are performed with `float32` arithmetic.
156158

157159
|===
158160

@@ -304,6 +306,7 @@ RETURN vector_dimension_count(vector([1, 2, 3], 3, INTEGER)) AS size
304306

305307
| The smaller the returned number, the more similar the vectors; the larger the number, the more distant the vectors.
306308
This is in contrast to the similarity functions where the closer to `1` the result is the higher the degree of similarity.
309+
| Floating point operations are performed with `float32` arithmetic.
307310

308311
|===
309312

@@ -383,6 +386,13 @@ RETURN vector_distance(vector([1.0, 5.0, 3.0, 6.7], 4, FLOAT), vector([5.0, 2.5,
383386
.Measure the norm between a vector and an origin vector using the `EUCLIDEAN` distance
384387
====
385388
389+
.Considerations
390+
|===
391+
392+
| Floating point operations are performed with `float32` arithmetic.
393+
394+
|===
395+
386396
.Query
387397
[source, cypher]
388398
----

0 commit comments

Comments
 (0)