Skip to content

Conversation

@afoucret
Copy link
Contributor

This PR introduce a new predefined completion endpoint for the .gp-llm-v2 model

TaskType.COMPLETION,
ElasticInferenceService.NAME,
GP_LLM_V2_COMPLETION_SERVICE_SETTINGS,
ChunkingSettingsBuilder.DEFAULT_SETTINGS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized we have a subtle bug here that I introduced initially. I tested and it doesn't seem to affect anything, thankfully. Could you try setting this to null?

There shouldn't be any chunking settings for completion or chat completion endpoints.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we could add a test that for these 3 endpoints that the model configuration should not have chunking settings that'd be great 🙏

TaskType.CHAT_COMPLETION,
ElasticInferenceService.NAME,
GP_LLM_V2_COMPLETION_SERVICE_SETTINGS,
ChunkingSettingsBuilder.DEFAULT_SETTINGS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be up for setting this one to null to fix the bug and keep things consistent?

TaskType.CHAT_COMPLETION,
ElasticInferenceService.NAME,
COMPLETION_SERVICE_SETTINGS,
ChunkingSettingsBuilder.DEFAULT_SETTINGS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be up for setting this one to null to fix the bug and keep things consistent?

@jonathan-buttner jonathan-buttner added :ml Machine learning Team:ML Meta label for the ML team and removed needs:triage Requires assignment of a team area label labels Nov 21, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@afoucret
Copy link
Contributor Author

@jonathan-buttner I will do these changes on Monday.

@jonathan-buttner
Copy link
Contributor

@jonathan-buttner I will do these changes on Monday.

❤️ thank you!

@afoucret afoucret merged commit 1d4c795 into elastic:main Nov 25, 2025
35 checks passed
afoucret added a commit to afoucret/elasticsearch that referenced this pull request Nov 26, 2025
ncordon pushed a commit to ncordon/elasticsearch that referenced this pull request Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning >non-issue Team:ML Meta label for the ML team v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants