We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14f26ef commit dcfed3fCopy full SHA for dcfed3f
src/semantic-router/pkg/cache/redis_cache.go
@@ -264,7 +264,7 @@ func (c *RedisCache) createIndex() error {
264
logging.Debugf("RedisCache.createIndex: auto-detected embedding dimension: %d", actualDimension)
265
266
// Determine distance metric for Redis
267
- distanceMetric := "COSINE"
+ var distanceMetric string
268
switch c.config.Index.VectorField.MetricType {
269
case "L2":
270
distanceMetric = "L2"
0 commit comments