Skip to content

Commit

Permalink
Fix symf rewrite failures (#4497)
Browse files Browse the repository at this point in the history
For some inputs, our LLM query rewrite would produce multiple lines of XML, whereas we expect a single line. This caused us to return no rewritten term, which results in no context.

This change updates the prompt to encourage the LLM to produce a single line. Additional fixes:
* Make sure to split `value` (the main keyword) on whitespace, to avoid duplicated rewritten terms
* If the rewrite fails for whatever reason, return the original string instead of failing the whole search

Relates to CODY-1615
  • Loading branch information
jtibshirani authored Jun 8, 2024
1 parent 332a8e0 commit 80d8923
Show file tree
Hide file tree
Showing 4 changed files with 2,503 additions and 10,258 deletions.
Loading

0 comments on commit 80d8923

Please sign in to comment.