Skip to content

Support configuring the chunking strategies through the semantic field. #1446

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bzhangam
Copy link
Collaborator

Description

Support configuring the chunking strategies through the semantic field.

Related Issues

Resolves #1354

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@bzhangam bzhangam force-pushed the chunkingconfig branch 2 times, most recently from 1b8772a to 85d9bd4 Compare July 15, 2025 18:23
@bzhangam bzhangam force-pushed the chunkingconfig branch 8 times, most recently from a39c5ad to 55526d3 Compare July 15, 2025 23:46
return;
}
if (chunkingConfig instanceof List<?>) {
List<Map<String, Object>> configList = (List<Map<String, Object>>) chunkingConfig;
Copy link
Member

Choose a reason for hiding this comment

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

Could there be non-map elements in the list

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No. The field config of the semantic field is validated when we create it in the index mapping to ensure this.

@yuye-aws
Copy link
Member

@bzhangam No other comments. Will approve this PR once the conflicts are resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Semantic Field Enhancement - Allow to Configure Chunking
4 participants