From 2e3a5cd43e835baa1d596b1aa54735992259ecb9 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 21 Mar 2024 14:26:41 -0400 Subject: [PATCH] [8.13] [Obs AI Assistant] Fix error in reranking prompt (#179164) (#179177) # Backport This will backport the following commits from `main` to `8.13`: - [[Obs AI Assistant] Fix error in reranking prompt (#179164)](https://github.com/elastic/kibana/pull/179164) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Milton Hultgren --- .../observability_ai_assistant/server/functions/context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/observability_ai_assistant/server/functions/context.ts b/x-pack/plugins/observability_ai_assistant/server/functions/context.ts index d255397d21c6c..9efa69ca81bd8 100644 --- a/x-pack/plugins/observability_ai_assistant/server/functions/context.ts +++ b/x-pack/plugins/observability_ai_assistant/server/functions/context.ts @@ -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