8-Bit Integer Vector: `veci8`
Int8 is a data type used to represent signed integers. It stands for “integer 8-bit” and typically uses 8 bits of memory to store a value. This allows it to rep
Int8 is a data type used to represent signed integers. It stands for “integer 8-bit” and typically uses 8 bits of memory to store a value. This allows it to represent integer values ranging from -128 to 127.
Since each element in the vector only requires 8 bits (1 byte) of memory, veci8 can help reduce the overall memory footprint of your program.
Here’s an example of creating a table with a veci8 column and inserting values:
Index can be created on veci8 type as well.
We support three operators to calculate the distance between two veci8 values.
<->(veci8_l2_ops): squared Euclidean distance, defined as .<#>(veci8_dot_ops): negative dot product, defined as .<=>(veci8_cos_ops): cosine distance, defined as .