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: src/vectorchord/usage/quantization-types.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,26 @@ Refer to
66
66
-`SELECT quantize_to_rabitq8('[1,1,1]'::halfvec)`
67
67
- Note: This function does not have a corresponding `CAST`. If you really need one, you can create it by `CREATE CAST (halfvec AS rabitq8) WITH FUNCTION quantize_to_rabitq8(halfvec) AS ASSIGNMENT`.
- Description: Dequantize a quantized vector to `vector`. This function may produce different outputs for the same input with different versions of VectorChord or with different machines. The original vector cannot be precisely reconstructed using this function.
72
+
- Result: `vector`, the dequantized vector
73
+
- Arguments:
74
+
-`rabitq8`, the quantized vector to be dequantized
- Note: This function does not have a corresponding `CAST`. If you really need one, you can create it by `CREATE CAST (rabitq8 AS vector) WITH FUNCTION dequantize_to_vector(rabitq8) AS ASSIGNMENT`.
- Description: Dequantize a quantized vector to `halfvec`. This function may produce different outputs for the same input with different versions of VectorChord or with different machines. The original vector cannot be precisely reconstructed using this function.
82
+
- Result: `halfvec`, the dequantized vector
83
+
- Arguments:
84
+
-`rabitq8`, the quantized vector to be dequantized
- Note: This function does not have a corresponding `CAST`. If you really need one, you can create it by `CREATE CAST (rabitq8 AS halfvec) WITH FUNCTION dequantize_to_halfvec(rabitq8) AS ASSIGNMENT`.
- Description: Quantize a vector to `rabitq4`. This function may produce different outputs for the same input with different versions of VectorChord or with different machines.
@@ -86,6 +106,26 @@ Refer to
86
106
-`SELECT quantize_to_rabitq4('[1,1,1]'::halfvec)`
87
107
- Note: This function does not have a corresponding `CAST`. If you really need one, you can create it by `CREATE CAST (halfvec AS rabitq4) WITH FUNCTION quantize_to_rabitq4(halfvec) AS ASSIGNMENT`.
- Description: Dequantize a quantized vector to `vector`. This function may produce different outputs for the same input with different versions of VectorChord or with different machines. The original vector cannot be precisely reconstructed using this function.
112
+
- Result: `vector`, the dequantized vector
113
+
- Arguments:
114
+
-`rabitq4`, the quantized vector to be dequantized
- Note: This function does not have a corresponding `CAST`. If you really need one, you can create it by `CREATE CAST (rabitq4 AS vector) WITH FUNCTION dequantize_to_vector(rabitq4) AS ASSIGNMENT`.
- Description: Dequantize a quantized vector to `halfvec`. This function may produce different outputs for the same input with different versions of VectorChord or with different machines. The original vector cannot be precisely reconstructed using this function.
122
+
- Result: `halfvec`, the dequantized vector
123
+
- Arguments:
124
+
-`rabitq4`, the quantized vector to be dequantized
- Note: This function does not have a corresponding `CAST`. If you really need one, you can create it by `CREATE CAST (rabitq4 AS halfvec) WITH FUNCTION dequantize_to_halfvec(rabitq4) AS ASSIGNMENT`.
0 commit comments