[Obs AI Assistant] Add KB user instructions#187607
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
buildkite test this |
fff5f21 to
f54af02
Compare
…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
|
💛 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