Skip to content

Commit

Permalink
fix: Fix null score usage in a chain example (#349)
Browse files Browse the repository at this point in the history
Added "document_" to metadata in the chain example
  • Loading branch information
pwoznic authored Oct 24, 2024
1 parent 0baf799 commit 8e27fcb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions www/docs/learn/user-defined-function-reranker.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,13 @@ applying a diversity bias and further limits the output to `50` results.
},
{
"type": "mmr",
"user_function": "get('$.metadata.popularity') * get('$.metadata.score')",
"user_function": "get('$.document_metadata.popularity') * get('$.document_metadata.score')",
"limit": 50
}
]
}
}
```



## Example document with nuanced metadata

This example document shows featured electronics for the upcoming fall season.
Expand Down

0 comments on commit 8e27fcb

Please sign in to comment.