-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Assistant] Add Knowledge Base entries API #206407
[Security Assistant] Add Knowledge Base entries API #206407
Conversation
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
💔 Build Failed
Failed CI StepsHistory
|
.../security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/index.ts
Show resolved
Hide resolved
const documentsFilter = documentIds.map((id) => `_id:${id}`).join(' OR '); | ||
const entries = await kbDataClient?.findDocuments<EsKnowledgeBaseEntrySchema>({ | ||
page: 1, | ||
perPage: 100, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if we should worry about this search at some point. If users will be adding lots of entries etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DW changes LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you!
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/13017926060 |
## Summary Expose Knowledge Base entries API --------- Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit b128cee)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…208610) # Backport This will backport the following commits from `main` to `8.x`: - [[Security Assistant] Add Knowledge Base entries API (#206407)](#206407) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Patryk Kopyciński","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-28T19:19:55Z","message":"[Security Assistant] Add Knowledge Base entries API (#206407)\n\n## Summary\r\n\r\nExpose Knowledge Base entries API\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"b128cee4ee7ccc367e8acf159dbf58a75f081867","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","v9.0.0","Feature:Security Assistant","Team:Security Generative AI","backport:version","v8.18.0"],"title":"[Security Assistant] Add Knowledge Base entries API","number":206407,"url":"https://github.com/elastic/kibana/pull/206407","mergeCommit":{"message":"[Security Assistant] Add Knowledge Base entries API (#206407)\n\n## Summary\r\n\r\nExpose Knowledge Base entries API\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"b128cee4ee7ccc367e8acf159dbf58a75f081867"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206407","number":206407,"mergeCommit":{"message":"[Security Assistant] Add Knowledge Base entries API (#206407)\n\n## Summary\r\n\r\nExpose Knowledge Base entries API\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"b128cee4ee7ccc367e8acf159dbf58a75f081867"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: Patryk Kopyciński <[email protected]>
Summary
Expose Knowledge Base entries API