You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/values-and-types/vector.adoc
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -177,7 +177,7 @@ Embeddings stored as `VECTOR` property values can be indexed and searched semant
177
177
[[vector-type-normalization]]
178
178
== VECTOR type normalization
179
179
180
-
Cypher runs a normalization algorithm on all `VECTOR` types, converting them into a consistent, deterministic form for equivalent types.
180
+
Cypher runs a normalization algorithm on all `VECTOR` types, converting them into a consistent form for equivalent types.
181
181
The following rules apply to `VECTOR` normalization:
182
182
183
183
* A `VECTOR` type without a defined coordinate type or dimension encompasses all others.
@@ -188,43 +188,43 @@ The following rules apply to `VECTOR` normalization:
188
188
.`VECTOR` type normalization
189
189
[cols="3,3,5", options="header"]
190
190
|===
191
-
| Compared types |Normalized Result |Reason
191
+
| Compared types |Normalized Result |Reason
192
192
193
-
|`VECTOR \| VECTOR<FLOAT32>(12345)`
194
-
|`VECTOR`
195
-
|`VECTOR` is the supertype and encompasses all others.
193
+
|`VECTOR \| VECTOR<FLOAT32>(12345)`
194
+
|`VECTOR`
195
+
|`VECTOR` is the supertype and encompasses all others.
196
196
197
-
|`VECTOR<FLOAT32> \| VECTOR(12345)`
198
-
|`VECTOR<FLOAT32> \| VECTOR(12345)`
199
-
|Cannot be normalized — one lacks a dimension, the other lacks a type.
197
+
|`VECTOR<FLOAT32> \| VECTOR(12345)`
198
+
|`VECTOR<FLOAT32> \| VECTOR(12345)`
199
+
|Cannot be normalized — one vector lacks a dimension, the other lacks a coordinate type.
200
200
201
-
|`VECTOR<FLOAT32> \| VECTOR<FLOAT32>(12345)`
202
-
|`VECTOR<FLOAT32>`
203
-
|Same type, one without dimension encompasses the other.
201
+
|`VECTOR<FLOAT32> \| VECTOR<FLOAT32>(12345)`
202
+
|`VECTOR<FLOAT32>`
203
+
|Same type, the vector without a defined dimension encompasses the other.
204
204
205
-
|`VECTOR(12345) \| VECTOR<FLOAT32>(12345)`
206
-
|`VECTOR(12345)`
207
-
|Same dimension, one without type encompasses the other.
205
+
|`VECTOR(12345) \| VECTOR<FLOAT32>(12345)`
206
+
|`VECTOR(12345)`
207
+
|Same dimension, the vector without a defined coordinate type encompasses the other.
208
208
209
-
|`VECTOR<FLOAT32> \| VECTOR<INTEGER64>`
210
-
|`VECTOR<FLOAT32> \| VECTOR<INTEGER64>`
211
-
|Cannot be normalized — coordinate types differ.
209
+
|`VECTOR<FLOAT32> \| VECTOR<INTEGER64>`
210
+
|`VECTOR<FLOAT32> \| VECTOR<INTEGER64>`
211
+
|Cannot be normalized — coordinate types differ.
212
212
213
-
|`VECTOR(1234) \| VECTOR(12345)`
214
-
|`VECTOR(1234) \| VECTOR(12345)`
215
-
|Cannot be normalized — dimensions differ.
213
+
|`VECTOR(1234) \| VECTOR(12345)`
214
+
|`VECTOR(1234) \| VECTOR(12345)`
215
+
|Cannot be normalized — dimensions differ.
216
216
217
-
|`VECTOR<FLOAT32>(1234) \| VECTOR<FLOAT64>(1234)`
218
-
|`VECTOR<FLOAT32>(1234) \| VECTOR<FLOAT64>(1234)`
219
-
|Cannot be normalized — types differ, even if dimensions match.
217
+
|`VECTOR<FLOAT32>(1234) \| VECTOR<FLOAT64>(1234)`
218
+
|`VECTOR<FLOAT32>(1234) \| VECTOR<FLOAT64>(1234)`
219
+
|Cannot be normalized — coordinate types differ, even if dimensions match.
220
220
|===
221
221
222
222
For normalization of other types, see xref:values-and-types/property-structural-constructed.adoc#type-normalization[Property, structural, and constructed values -> Type normalization].
223
223
224
224
[[ordering-vector-types]]
225
225
== Ordering VECTOR types
226
226
227
-
The `VECTOR` supertypes are ordered ascendingly from the most general to the more specific forms:
227
+
The `VECTOR` supertypes are ordered in the following ascending order.
228
228
229
229
* `VECTOR`
230
230
* `VECTOR<TYPE>`
@@ -280,7 +280,7 @@ Within the same coordinate type, `VECTOR` types are ordered by their dimension,
280
280
| `VECTOR<INTEGER16>(1234)`
281
281
| `LIST<INTEGER>`
282
282
| A < B
283
-
| `VECTOR` values are ordered before `LIST` values
283
+
| `VECTOR` values are ordered before `LIST` values.
0 commit comments