-
Notifications
You must be signed in to change notification settings - Fork 136
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
[Enhancement] Fetch system index mappings from json file instead of string constants #3153
Open
pyek-bot
wants to merge
15
commits into
opensearch-project:main
Choose a base branch
from
pyek-bot:fetch_index_mappings_from_files
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
18eedf6
feat(index mappings): fetch mappings and version from json file inste…
pyek-bot 7068729
refactor: changing exception being thrown
pyek-bot abd4b25
chore: remove unused file
pyek-bot d2f3c0e
chore: fix typo in comment
pyek-bot fa81560
chore: adding new line at the end of files
pyek-bot 63a6d62
feat: add test cases
pyek-bot 8cbaf01
fix: remove test code
pyek-bot 3423026
fix(test): in main the versions were not updated appropriately
pyek-bot 67a1810
refactor: move mapping templates under common module
pyek-bot 63bc70d
refactor: ensure that conversationindexconstants reference mlindex en…
pyek-bot 88673ed
refactor: update comment
pyek-bot 56d945b
refactor: rename dir from mappings to index-mappings
pyek-bot 4ea99ea
fix: add null checks
pyek-bot ce72e53
fix: adding dependencies for testing
pyek-bot e714c35
fix(test): compare json object rather than strings to avoid eol chara…
pyek-bot 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
539 changes: 10 additions & 529 deletions
539
common/src/main/java/org/opensearch/ml/common/CommonValue.java
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"_meta": { | ||
"schema_version": 2 | ||
}, | ||
"properties": { | ||
"name": { | ||
"type": "text", | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword", | ||
"ignore_above": 256 | ||
} | ||
} | ||
}, | ||
"type": { | ||
"type": "keyword" | ||
}, | ||
"description": { | ||
"type": "text" | ||
}, | ||
"llm": { | ||
"type": "flat_object" | ||
}, | ||
"tools": { | ||
"type": "flat_object" | ||
}, | ||
"parameters": { | ||
"type": "flat_object" | ||
}, | ||
"memory": { | ||
"type": "flat_object" | ||
}, | ||
"is_hidden": { | ||
"type": "boolean" | ||
}, | ||
"created_time": { | ||
"type": "date", | ||
"format": "strict_date_time||epoch_millis" | ||
}, | ||
"last_updated_time": { | ||
"type": "date", | ||
"format": "strict_date_time||epoch_millis" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"_meta": { | ||
"schema_version": 4 | ||
}, | ||
"properties": { | ||
"master_key": { | ||
"type": "keyword" | ||
}, | ||
"config_type": { | ||
"type": "keyword" | ||
}, | ||
"ml_configuration": { | ||
"type": "flat_object" | ||
}, | ||
"create_time": { | ||
"type": "date", | ||
"format": "strict_date_time||epoch_millis" | ||
}, | ||
"last_updated_time": { | ||
"type": "date", | ||
"format": "strict_date_time||epoch_millis" | ||
} | ||
} | ||
} |
Oops, something went wrong.
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.
@austintlee @HenryL27 I have also modified this class to use the MLIndex enum, please review the same. I didn't want to do a full refactor for now as it may impact functionality. Added as a todo on top of the class.