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
|[INNER_PRODUCT](./03-inner-product.md)| Calculates the inner product (dot product) of two vectors |`INNER_PRODUCT([1,2,3]::VECTOR(3), [4,5,6]::VECTOR(3))`|
15
16
16
17
## Vector Analysis Functions
17
18
18
19
| Function | Description | Example |
19
20
|----------|-------------|--------|
20
-
|[INNER_PRODUCT](./03-inner-product.md)| Calculates the inner product (dot product) of two vectors |`INNER_PRODUCT([1,2,3], [4,5,6])`|
21
-
|[VECTOR_NORM](./05-vector-norm.md)| Calculates the L2 norm (magnitude) of a vector |`VECTOR_NORM([1,2,3])`|
22
-
|[VECTOR_DIMS](./04-vector-dims.md)| Returns the dimensionality of a vector |`VECTOR_DIMS([1,2,3])`|
21
+
|[VECTOR_NORM](./05-vector-norm.md)| Calculates the L2 norm (magnitude) of a vector |`VECTOR_NORM([1,2,3]::VECTOR(3))`|
22
+
|[VECTOR_DIMS](./04-vector-dims.md)| Returns the dimensionality of a vector |`VECTOR_DIMS([1,2,3]::VECTOR(3))`|
23
23
24
24
## Distance Functions Comparison
25
25
26
26
| Function | Description | Range | Best For | Use Cases |
|[COSINE_DISTANCE](./00-vector-cosine-distance.md)|Angular distance between vectors |[0, 1]| When direction matters more than magnitude | • Document similarity<br/>• Semantic search<br/>• Recommendation systems<br/>• Text analysis |
28
+
|[COSINE_DISTANCE](./00-vector-cosine-distance.md)|Cosine distance between vectors |[0, 1]| When direction matters more than magnitude | • Document similarity<br/>• Semantic search<br/>• Recommendation systems<br/>• Text analysis |
|[L2_DISTANCE](./01-vector-l2-distance.md)| Euclidean (straight-line) distance |[0, ∞) | When magnitude and absolute differences are important | • Image similarity<br/>• Geographical data<br/>• Anomaly detection<br/>• Feature-based clustering |
31
+
|[INNER_PRODUCT](./03-inner-product.md)| Dot product of two vectors | (-∞, ∞) | When both magnitude and direction are important | • Neural networks<br/>• Machine learning<br/>• Physics calculations<br/>• Vector projections |
31
32
32
33
## Vector Analysis Functions Comparison
33
34
34
35
| Function | Description | Range | Best For | Use Cases |
0 commit comments