-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[Obs AI Assistant] Add KB user instructions #187607
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
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
x-pack/plugins/observability_solution/observability_ai_assistant/server/service/index.ts
Show resolved
Hide resolved
...ution/observability_ai_assistant/server/service/util/get_system_message_from_instructions.ts
Outdated
Show resolved
Hide resolved
buildkite test this |
fff5f21
to
f54af02
Compare
...rvability_solution/observability_ai_assistant/server/service/knowledge_base_service/index.ts
Outdated
Show resolved
Hide resolved
…tions # Conflicts: # x-pack/plugins/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/index.ts
buildkite test this |
💔 Build Failed
Failed CI StepsHistory
|
x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/summarize.ts
Outdated
Show resolved
Hide resolved
...lugins/observability_solution/observability_ai_assistant/server/service/client/index.test.ts
Outdated
Show resolved
Hide resolved
...olution/observability_ai_assistant_management/public/hooks/use_get_knowledge_base_entries.ts
Outdated
Show resolved
Hide resolved
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
References to deprecated APIs
History
To update your PR or re-run it, just comment with: |
Related to: https://github.com/elastic/obs-ai-assistant-team/issues/157
This makes user instructions available in the UI which makes it possible for end users to create instructions that are appended to the system prompt. Technically the system supports multiple instructions per user, but for now we limit it to a single instruction per user.
From a technical perspective:
User instructions are stored in the knowledge base. They are included in the system prompt if they fit within the token budget. They are different from the existing "contextual" entries that are only included in the context function response (aka not the system message) and only if they semantically matches the user's prompt.
Screenshots
"Edit system prompt" button

"Edit system prompt" flyout

haiku-prompt.mp4