Skip to content

Commit 9f52d57

Browse files
committed
fix: escape backslashes in mathematical formulas for consistency
1 parent ba794c8 commit 9f52d57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • bindings/python/src/arcadedb_embedded

bindings/python/src/arcadedb_embedded/vector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ class VectorIndex:
9898
9999
2. **COSINE**:
100100
- Returns **Normalized Distance** (Lower is better).
101-
- Formula: $(1 - \cos(\theta)) / 2$
101+
- Formula: $(1 - \\cos(\\theta)) / 2$
102102
- Range: [0.0, 1.0]
103103
- 0.0: Identical vectors (angle 0)
104104
- 0.5: Orthogonal vectors (angle 90)
105105
- 1.0: Opposite vectors (angle 180)
106106
107107
3. **DOT_PRODUCT**:
108108
- Returns **Negative Dot Product** (Lower is better).
109-
- Formula: $- (A \cdot B)$
109+
- Formula: $- (A \\cdot B)$
110110
- Range: (-inf, +inf)
111111
- Lower values indicate higher similarity (larger positive dot product).
112112

0 commit comments

Comments
 (0)