Skip to content

Commit

Permalink
[8.13] [Obs AI Assistant] Fix error in reranking prompt (#179164) (#1…
Browse files Browse the repository at this point in the history
…79177)

# Backport

This will backport the following commits from `main` to `8.13`:
- [[Obs AI Assistant] Fix error in reranking prompt
(#179164)](#179164)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Milton
Hultgren","email":"milton.hultgren@elastic.co"},"sourceCommit":{"committedDate":"2024-03-21T17:12:19Z","message":"[Obs
AI Assistant] Fix error in reranking prompt
(#179164)","sha":"7ca14caca7d463a3a4e75fe54e4f9635b8d40ed7","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","Team:obs-knowledge","v8.14.0"],"title":"[Obs
AI Assistant] Fix error in reranking
prompt","number":179164,"url":"#179164
AI Assistant] Fix error in reranking prompt
(#179164)","sha":"7ca14caca7d463a3a4e75fe54e4f9635b8d40ed7"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"#179164
AI Assistant] Fix error in reranking prompt
(#179164)","sha":"7ca14caca7d463a3a4e75fe54e4f9635b8d40ed7"}}]}]
BACKPORT-->

Co-authored-by: Milton Hultgren <milton.hultgren@elastic.co>
  • Loading branch information
kibanamachine and miltonhultgren committed Mar 21, 2024
1 parent fdab716 commit 2e3a5cd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -214,7 +214,7 @@ async function scoreSuggestions({

const newUserMessageContent =
dedent(`Given the following question, score the documents that are relevant to the question. on a scale from 0 to 7,
0 being completely relevant, and 7 being extremely relevant. Information is relevant to the question if it helps in
0 being completely irrelevant, and 7 being extremely relevant. Information is relevant to the question if it helps in
answering the question. Judge it according to the following criteria:
- The document is relevant to the question, and the rest of the conversation
Expand Down

0 comments on commit 2e3a5cd

Please sign in to comment.