Skip to content

Commit 6d48a59

Browse files
Update reciprocal-rank-fusion.md
1 parent 5929cc8 commit 6d48a59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/elasticsearch/rest-apis/reciprocal-rank-fusion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,12 +410,12 @@ First, we look at the hits for the query from the `standard` retriever.
410410
}
411411
]
412412
```
413+
% TEST[skip:example fragment]
413414

414415
1. rank 1, `_id` 4
415416
2. rank 2, `_id` 3
416417
3. rank 3, `_id` 2
417418
4. rank 4, `_id` 1
418-
% TEST[skip:example fragment]
419419

420420
Note that our first hit doesn’t have a value for the `vector` field. Now, we look at the results for the kNN search from the `knn` retriever.
421421

@@ -462,12 +462,12 @@ Note that our first hit doesn’t have a value for the `vector` field. Now, we l
462462
}
463463
]
464464
```
465+
% TEST[skip:example fragment]
465466

466467
1. rank 1, `_id` 3
467468
2. rank 2, `_id` 2
468469
3. rank 3, `_id` 1
469470
4. rank 4, `_id` 5
470-
% TEST[skip:example fragment]
471471

472472
We can now take the two individually ranked result sets and apply the RRF formula to them using parameters from the `rrf` retriever to get our final ranking.
473473

0 commit comments

Comments
 (0)