Rerank with lower threshold + back to map if length = 0#1086
Merged
nickscamara merged 3 commits intomainfrom Jan 24, 2025
Merged
Rerank with lower threshold + back to map if length = 0#1086nickscamara merged 3 commits intomainfrom
nickscamara merged 3 commits intomainfrom
Conversation
mogery
approved these changes
Jan 24, 2025
Member
mogery
left a comment
There was a problem hiding this comment.
I like it! Might extend the logging a bit afterwards. How does it do on the relevant cases in the Excel? And the benchmark?
mogery
reviewed
Jan 24, 2025
|
|
||
| export function buildRerankerUserPrompt(searchQuery: string): string { | ||
| return `Given these URLs and their content, identify which ones are relevant to the user's extraction request: "${searchQuery}". Return an array of relevant links with their relevance scores (0-1). Higher scores should be given to URLs that directly address the user's extraction request. Be very mindful with the links you select, as if they are not that relevant it may affect the quality of the extraction. Only include URLs that have a relvancy score of 0.6+.`; | ||
| return `Given these URLs and their content, identify which ones are relevant to the user's extraction request: "${searchQuery}". Return an array of relevant links with their relevance scores (0-1). Higher scores should be given to URLs that directly address the user's extraction request. Be very mindful with the links you select, as if they are not that relevant it may affect the quality of the extraction.`; |
Member
There was a problem hiding this comment.
Might be worth rewriting the prompt a little to have it just assign a score instead of selecting? Would give us more control of what we include.
Member
|
Evals look good. Around ~4% better in most cases. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FIR-666