Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mkozakov authored Dec 1, 2024
1 parent 94dadf5 commit 284ef9c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ For example, if

Then the document will be broken into the following three chunks:

1. `relevance_score_1 = <padding_tokens, query[0,99], document[0,3994]>`
1. `relevance_score_2 = <padding_tokens, query[0,99], document[3995,7989]>`
1. `relevance_score_3 = <padding_tokens, query[0,99], document[7990,9999]>`
relevance_score_1 = <padding_tokens, query[0,99], document[0,3992]>
relevance_score_2 = <padding_tokens, query[0,99], document[3993,7985]>
relevance_score_3 = <padding_tokens, query[0,99], document[7986,9999]>

And the final relevance score for that document will be computed as the highest score among those chunks:
```python
Expand All @@ -42,6 +42,8 @@ Our Rerank models support reranking structured data formatted as a list of YAML

Example:
```python
import yaml

docs = [
{
"Title": "How to fix a dishwasher",
Expand Down

0 comments on commit 284ef9c

Please sign in to comment.