Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.12] [Obs AI Assistant] ES|QL improvements (#173303) #173486

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.12:

Questions ?

Please refer to the Backport tool documentation

Use a combination of system prompt + recall for ES|QL to allow for:

- faster responses
- wider support of functions (e.g. any documented function is now
supported, in theory)

Performance for the current ES|QL scenarios is similar.

Some things I've noticed:
- ~for whatever reason it is much harder to get the LLM to not make
certain mistakes. I've tried mentioning some mistakes close to the end
of the conversation, but will explore other options.~ I am again opting
for repeating common mistakes at the start of the message, but this time
I'm allowing the LLM to pick them.
- if we can prevent it from making "known" mistakes, we can figure out a
way to have the LLM store known mistakes. This is also useful for other
functions
- another thing I want to figure out is if more examples improves for
commands and custom documentation improves performance. but later.

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit d54109d)
@kibanamachine kibanamachine merged commit dab8881 into elastic:8.12 Dec 17, 2023
40 checks passed
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
observabilityAIAssistant 153.8KB 153.8KB +5.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @dgieselaar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants