Skip to content

Commit 728a03f

Browse files
authored
Merge pull request #4766 from guardian/em-default-vecweight-0.8
default vecWeight to 0.8
2 parents 29ffa00 + 355e303 commit 728a03f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

media-api/app/controllers/MediaApi.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ class MediaApi(
650650
logger.info(markers, s"AI search embedding cache miss query=$semanticQuery")
651651
}
652652

653-
val weight = params.vecWeight.getOrElse(1.0)
653+
val weight = params.vecWeight.getOrElse(0.8)
654654

655655
// cache.get(key) is atomic: if two requests race on the same key, only one
656656
// load fires and both callers receive the same Future.

0 commit comments

Comments
 (0)