-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Refactor ChunkingSettings classes from Inference plugin to XPack core #136219
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
base: main
Are you sure you want to change the base?
Refactor ChunkingSettings classes from Inference plugin to XPack core #136219
Conversation
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.
In order to make this PR as small as possible, I surgically moved only those methods necessary from ServiceUtils
and kept callers there for actual implementation messages. I did not move tests either. If I move things more aggressively this PR gets exponentially bigger.
Pinging @elastic/ml-core (Team:ML) |
Pinging @elastic/search-relevance (Team:Search - Relevance) |
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.
Are there any follow-up PRs planned to move tests to the appropriate module and maybe move the rest of the ServiceUtils
methods too?
While moving classes can create a PR that touches a lot of files, the actual changes themselves are very easy to review, so I wouldn't mind including them as part of this PR if that would make it easier to keep everything where it should be.
@DonalEvans Sure, I can move the tests too. I didn't at first because there are still a lot of callers in |
This will allow chunking settings to be easily re-used by the ES|QL plugin.