-
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] Add uuid to knowledge base entries to avoid overwriting accidentally #191043
Merged
sorenlouv
merged 52 commits into
elastic:main
from
sorenlouv:add-uuid-to-kb-entries-to-avoid-overwriting
Nov 7, 2024
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
e627b85
[Obs AI Assistant] Add uuid to knowledge base entries to avoid overwr…
sorenlouv ede9593
Fix issues
sorenlouv 4f5cb94
Fix user instruction test
sorenlouv bafa18b
Merge branch 'main' into add-uuid-to-kb-entries-to-avoid-overwriting
neptunian 14854d2
Fix test
sorenlouv f6b8303
Cleanup
sorenlouv f88d826
Improve types
sorenlouv f42f1ec
i18n
sorenlouv b718ae5
Remove unused imports
sorenlouv 59a9362
Re-add `ShortIdTable`
sorenlouv 51cb688
Change `recall` to not return entries as nested object
sorenlouv 51495d2
Rename `groupId` back to `docId` to reduce diff
sorenlouv 5fdcc4d
Add test for shortIdTable
sorenlouv d470e39
Revert change to reduce diff
sorenlouv fb7370b
Keep original id
sorenlouv c63a8f9
Omit “User” suffix from API client methods
sorenlouv a6d55ed
Type fix
sorenlouv b3f7d3a
Fix categorization bug
sorenlouv b20bd1b
Revert changes to files
sorenlouv 0f531e4
Add functional test
sorenlouv 63b171d
Merge branch 'main' of github.com:elastic/kibana into add-uuid-to-kb-…
sorenlouv 08aa578
i18n
sorenlouv ad425be
Revert tsconfig changes
sorenlouv 6da17f3
Merge branch 'main' of github.com:elastic/kibana into add-uuid-to-kb-…
sorenlouv 90b5484
Include KB entries when they contain contradicting info
sorenlouv 923681c
[CI] Auto-commit changed files from 'node scripts/build_plugin_list_d…
kibanamachine 03e8fe6
Fix tsc and jest
sorenlouv 9b2cf9b
Improve functional test
sorenlouv 5ea4ac2
Merge branch 'main' into add-uuid-to-kb-entries-to-avoid-overwriting
sorenlouv 91c84d2
Merge branch 'main' into add-uuid-to-kb-entries-to-avoid-overwriting
sorenlouv b7d2f8e
Merge branch 'main' of github.com:elastic/kibana into add-uuid-to-kb-…
sorenlouv 1d6beef
Merge branch 'main' of github.com:elastic/kibana into add-uuid-to-kb-…
sorenlouv fc0a970
Fix tsc
sorenlouv 0aaf657
Fix serverless test
sorenlouv b0e2781
Remove `doc_id`
sorenlouv 035a054
Remove queue logic
sorenlouv 6091e81
Merge branch 'main' into add-uuid-to-kb-entries-to-avoid-overwriting
sorenlouv 996e3d8
Fall back to doc_id
sorenlouv 94996c8
Remove log
sorenlouv e1ae033
Remove unused knowledge_base/knowledge_base.spec.ts
sorenlouv 993745e
Fix lint issues
sorenlouv 4022dab
Fix serverless test
sorenlouv 3671085
Fix broken api test
sorenlouv 5708359
fix tests
sorenlouv 6e448b8
Fix test
sorenlouv 3114e7d
Improve type
sorenlouv 094f94c
Fix functional test
sorenlouv 744a279
Merge branch 'main' into add-uuid-to-kb-entries-to-avoid-overwriting
sorenlouv 55e5800
Remove queue for task manager types
sorenlouv 3f715be
Merge branch 'main' into add-uuid-to-kb-entries-to-avoid-overwriting
sorenlouv efa7bf2
editorUser -> editor
sorenlouv 732f4ae
Fix summarisation test
sorenlouv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ const chatCompleteBaseRt = t.type({ | |
]), | ||
instructions: t.array( | ||
t.intersection([ | ||
t.partial({ doc_id: t.string }), | ||
t.partial({ id: t.string }), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's still possible to overwrite existing instructions by specifying the |
||
t.type({ | ||
text: t.string, | ||
instruction_type: t.union([ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
doc_id
can be used by the LLM to lookup entries. I see no reason to expand that concept to instructions. instructions can still have pre-determined id's - they do not have to be UUIDs. See the lens docs for an example of this