-
Notifications
You must be signed in to change notification settings - Fork 94
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
base: main
Are you sure you want to change the base?
Conversation
src/main/java/org/opensearch/neuralsearch/mapper/dto/ChunkingConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/mapper/dto/ChunkingConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/processor/chunker/Chunker.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/processor/chunker/ChunkerFactory.java
Outdated
Show resolved
Hide resolved
1b8772a
to
85d9bd4
Compare
src/main/java/org/opensearch/neuralsearch/mapper/dto/ChunkingConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/mapper/dto/ChunkingConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/mapper/dto/ChunkingConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/processor/chunker/Chunker.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/processor/chunker/ChunkerFactory.java
Outdated
Show resolved
Hide resolved
a39c5ad
to
55526d3
Compare
src/main/java/org/opensearch/neuralsearch/processor/dto/SemanticFieldInfo.java
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/processor/dto/SemanticFieldInfo.java
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/mapper/dto/ChunkingConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/processor/chunker/Validator.java
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/processor/chunker/Chunker.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/processor/chunker/Chunker.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/processor/chunker/Chunker.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/processor/chunker/Parser.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/processor/chunker/Validator.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/processor/chunker/Chunker.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Bo Zhang <[email protected]>
return; | ||
} | ||
if (chunkingConfig instanceof List<?>) { | ||
List<Map<String, Object>> configList = (List<Map<String, Object>>) chunkingConfig; |
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.
Could there be non-map elements in the list
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.
No. The field config of the semantic field is validated when we create it in the index mapping to ensure this.
@bzhangam No other comments. Will approve this PR once the conflicts are resolved. |
Signed-off-by: Bo Zhang <[email protected]>
Description
Support configuring the chunking strategies through the semantic field.
Related Issues
Resolves #1354
Check List
--signoff
.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.