Skip to content

Commit b93d3e7

Browse files
Update reciprocal-rank-fusion.md
1 parent 0419a30 commit b93d3e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,14 +537,15 @@ In addition to individual query scoring details, we can make use of the `explain
537537
]
538538
}
539539
```
540+
% NOTCONSOLE
540541

541542
1. the final RRF score for document with `_id=3`
542543
2. a description on how this score was computed based on the ranks of this document in each individual query
543544
3. details on how the RRF score was computed for each of the queries
544545
4. the `value` heres specifies the `rank` of this document in the specific query
545546
5. standard `explain` output of the underlying query, describing matching terms and weights
546547
6. the `value` heres specifies the `rank` of this document for the second (`knn`) query
547-
% NOTCONSOLE
548+
548549

549550
In addition to the above, explain in RRF also supports [named queries](/reference/query-languages/query-dsl-bool-query.md#named-queries) using the `_name` parameter. Using named queries allows for easier and more intuitive understanding of the RRF score computation, especially when dealing with multiple queries. So, we would now have:
550551

@@ -587,9 +588,9 @@ GET example-index/_search
587588
}
588589
}
589590
```
591+
% NOTCONSOLE
590592

591593
1. Here we specify a `_name` for the `knn` retriever
592-
% NOTCONSOLE
593594

594595
The response would now include the named query in the explanation:
595596

@@ -630,10 +631,9 @@ The response would now include the named query in the explanation:
630631
]
631632
}
632633
```
633-
634-
1. Instead of the anonymous `at index n` , we now have a reference to the named query `my_knn_query`.
635634
% NOTCONSOLE
636635

636+
1. Instead of the anonymous `at index n` , we now have a reference to the named query `my_knn_query`.
637637

638638
## Pagination in RRF [_pagination_in_rrf]
639639

0 commit comments

Comments
 (0)