-
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
[Obs AI Assistant] It should be possible to clear the user-specific system prompt #202279
Conversation
Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
...ssistant_management/public/routes/components/knowledge_base_edit_user_instruction_flyout.tsx
Show resolved
Hide resolved
@@ -405,7 +405,7 @@ export class KnowledgeBaseService { | |||
document: { | |||
'@timestamp': new Date().toISOString(), | |||
...doc, | |||
semantic_text: doc.text, | |||
...(doc.text ? { semantic_text: doc.text } : {}), |
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.
Empty semantic_text
is not allowed so the field is removed when empty
💚 Build Succeeded
Metrics [docs]Async chunks
History
|
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
Starting backport for target branches: 7.17, 8.15, 8.16, 8.17, 8.x https://github.com/elastic/kibana/actions/runs/12120465072 |
…ystem prompt (elastic#202279) I noticed that I was not able to clear the user-specific system prompt. I had initially entered "Please speak in Swedish" and saved. Afterwards I wanted to clear this but the save button is disabled if the text content is empty. ![image](https://github.com/user-attachments/assets/c3889831-e96a-491f-a8c1-29ae235af2ae) (cherry picked from commit a63441d)
…ystem prompt (elastic#202279) I noticed that I was not able to clear the user-specific system prompt. I had initially entered "Please speak in Swedish" and saved. Afterwards I wanted to clear this but the save button is disabled if the text content is empty. ![image](https://github.com/user-attachments/assets/c3889831-e96a-491f-a8c1-29ae235af2ae) (cherry picked from commit a63441d)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…ific system prompt (#202279) (#202469) # Backport This will backport the following commits from `main` to `8.x`: - [[Obs AI Assistant] It should be possible to clear the user-specific system prompt (#202279)](#202279) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Søren Louv-Jansen","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-02T13:33:59Z","message":"[Obs AI Assistant] It should be possible to clear the user-specific system prompt (#202279)\n\nI noticed that I was not able to clear the user-specific system prompt.\r\nI had initially entered \"Please speak in Swedish\" and saved. Afterwards\r\nI wanted to clear this but the save button is disabled if the text\r\ncontent is empty.\r\n\r\n![image](https://github.com/user-attachments/assets/c3889831-e96a-491f-a8c1-29ae235af2ae)","sha":"a63441d461d32130c25c6d21d2b42c18eb2f14b5","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","v7.17.0","backport:prev-minor","Team:Obs AI Assistant","ci:project-deploy-observability"],"title":"[Obs AI Assistant] It should be possible to clear the user-specific system prompt","number":202279,"url":"https://github.com/elastic/kibana/pull/202279","mergeCommit":{"message":"[Obs AI Assistant] It should be possible to clear the user-specific system prompt (#202279)\n\nI noticed that I was not able to clear the user-specific system prompt.\r\nI had initially entered \"Please speak in Swedish\" and saved. Afterwards\r\nI wanted to clear this but the save button is disabled if the text\r\ncontent is empty.\r\n\r\n![image](https://github.com/user-attachments/assets/c3889831-e96a-491f-a8c1-29ae235af2ae)","sha":"a63441d461d32130c25c6d21d2b42c18eb2f14b5"}},"sourceBranch":"main","suggestedTargetBranches":["7.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202279","number":202279,"mergeCommit":{"message":"[Obs AI Assistant] It should be possible to clear the user-specific system prompt (#202279)\n\nI noticed that I was not able to clear the user-specific system prompt.\r\nI had initially entered \"Please speak in Swedish\" and saved. Afterwards\r\nI wanted to clear this but the save button is disabled if the text\r\ncontent is empty.\r\n\r\n![image](https://github.com/user-attachments/assets/c3889831-e96a-491f-a8c1-29ae235af2ae)","sha":"a63441d461d32130c25c6d21d2b42c18eb2f14b5"}},{"branch":"7.17","label":"v7.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Søren Louv-Jansen <[email protected]>
…cific system prompt (#202279) (#202468) # Backport This will backport the following commits from `main` to `8.17`: - [[Obs AI Assistant] It should be possible to clear the user-specific system prompt (#202279)](#202279) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Søren Louv-Jansen","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-02T13:33:59Z","message":"[Obs AI Assistant] It should be possible to clear the user-specific system prompt (#202279)\n\nI noticed that I was not able to clear the user-specific system prompt.\r\nI had initially entered \"Please speak in Swedish\" and saved. Afterwards\r\nI wanted to clear this but the save button is disabled if the text\r\ncontent is empty.\r\n\r\n![image](https://github.com/user-attachments/assets/c3889831-e96a-491f-a8c1-29ae235af2ae)","sha":"a63441d461d32130c25c6d21d2b42c18eb2f14b5","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","v7.17.0","backport:prev-minor","Team:Obs AI Assistant","ci:project-deploy-observability"],"title":"[Obs AI Assistant] It should be possible to clear the user-specific system prompt","number":202279,"url":"https://github.com/elastic/kibana/pull/202279","mergeCommit":{"message":"[Obs AI Assistant] It should be possible to clear the user-specific system prompt (#202279)\n\nI noticed that I was not able to clear the user-specific system prompt.\r\nI had initially entered \"Please speak in Swedish\" and saved. Afterwards\r\nI wanted to clear this but the save button is disabled if the text\r\ncontent is empty.\r\n\r\n![image](https://github.com/user-attachments/assets/c3889831-e96a-491f-a8c1-29ae235af2ae)","sha":"a63441d461d32130c25c6d21d2b42c18eb2f14b5"}},"sourceBranch":"main","suggestedTargetBranches":["7.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202279","number":202279,"mergeCommit":{"message":"[Obs AI Assistant] It should be possible to clear the user-specific system prompt (#202279)\n\nI noticed that I was not able to clear the user-specific system prompt.\r\nI had initially entered \"Please speak in Swedish\" and saved. Afterwards\r\nI wanted to clear this but the save button is disabled if the text\r\ncontent is empty.\r\n\r\n![image](https://github.com/user-attachments/assets/c3889831-e96a-491f-a8c1-29ae235af2ae)","sha":"a63441d461d32130c25c6d21d2b42c18eb2f14b5"}},{"branch":"7.17","label":"v7.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Søren Louv-Jansen <[email protected]>
Starting backport for target branches: 7.17, 8.15, 8.16, 8.17, 8.x https://github.com/elastic/kibana/actions/runs/12137259528 |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
Starting backport for target branches: 8.17, 8.x https://github.com/elastic/kibana/actions/runs/12137819295 |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…ystem prompt (elastic#202279) I noticed that I was not able to clear the user-specific system prompt. I had initially entered "Please speak in Swedish" and saved. Afterwards I wanted to clear this but the save button is disabled if the text content is empty. ![image](https://github.com/user-attachments/assets/c3889831-e96a-491f-a8c1-29ae235af2ae)
…ystem prompt (elastic#202279) I noticed that I was not able to clear the user-specific system prompt. I had initially entered "Please speak in Swedish" and saved. Afterwards I wanted to clear this but the save button is disabled if the text content is empty. ![image](https://github.com/user-attachments/assets/c3889831-e96a-491f-a8c1-29ae235af2ae)
I noticed that I was not able to clear the user-specific system prompt. I had initially entered "Please speak in Swedish" and saved. Afterwards I wanted to clear this but the save button is disabled if the text content is empty.