-
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 solution] assistantKnowledgeBaseByDefault
flag removed
#198180
Conversation
@@ -1,478 +0,0 @@ | |||
/* |
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.
This elasticsearch_store
stuff is dead code, could have been deleted in this PR: https://github.com/elastic/kibana/pull/192665/files#r1769323053
modelId: await this.getElserId(), | ||
v2KnowledgeBaseEnabled: this.v2KnowledgeBaseEnabled, |
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.
These properties are unused for the noop
pipeline
this.knowledgeBaseDataStream = this.createDataStream({ | ||
resource: 'knowledgeBase', | ||
kibanaVersion: this.options.kibanaVersion, | ||
fieldMap: knowledgeBaseFieldMapV2, |
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.
Note that the const knowledgeBaseFieldMapV2
has now been renamed to knowledgeBaseFieldMap
. Therefore, createDataStream
is called for the "v2" mappings on L95
const isKnowledgeBaseInstalled = await getIsKnowledgeBaseInstalled(kbDataClient); | ||
|
||
telemetry?.reportEvent(INVOKE_ASSISTANT_ERROR_EVENT.eventType, { | ||
actionTypeId: actionTypeId ?? '', | ||
model: request.body.model, | ||
errorMessage: error.message, | ||
// TODO rm actionTypeId check when llmClass for bedrock streaming is implemented |
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.
Stale comment
x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/index.ts
Show resolved
Hide resolved
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.
LGTM. Thanks for the update!
Plan is to merge this on Tues Nov 12 |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/11803191538 |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…lastic#198180) (cherry picked from commit 194de0d)
…ved (#198180) (#199859) # Backport This will backport the following commits from `main` to `8.x`: - [[Security solution] `assistantKnowledgeBaseByDefault` flag removed (#198180)](#198180) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Steph Milovic","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-12T18:10:53Z","message":"[Security solution] `assistantKnowledgeBaseByDefault` flag removed (#198180)","sha":"194de0dadb50b37e7b1be5b9228c34c9b3f0f0e6","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team: SecuritySolution","Team:Security Generative AI","backport:version","v8.17.0"],"number":198180,"url":"https://github.com/elastic/kibana/pull/198180","mergeCommit":{"message":"[Security solution] `assistantKnowledgeBaseByDefault` flag removed (#198180)","sha":"194de0dadb50b37e7b1be5b9228c34c9b3f0f0e6"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198180","number":198180,"mergeCommit":{"message":"[Security solution] `assistantKnowledgeBaseByDefault` flag removed (#198180)","sha":"194de0dadb50b37e7b1be5b9228c34c9b3f0f0e6"}},{"branch":"8.x","label":"v8.17.0","labelRegex":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
Summary
assistantKnowledgeBaseByDefault
flag and all of its code paths.