generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 105
Add batch semantic highlighting support #1520
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
Merged
junqiu-lei
merged 27 commits into
opensearch-project:main
from
junqiu-lei:highlighting-processor
Sep 30, 2025
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
2e577c4
Add semantic highlighting response processor with batch inference sup…
junqiu-lei 97fdaa6
Add integration test with remote model by local hosted torch server
junqiu-lei f1d4947
Add batch inference support for semantic highlighting with backward c…
junqiu-lei 3674f23
Use remote model for both multi-node and single-node integ test
junqiu-lei 7b17ac1
Fix UnsupportedOperationException in multi-node semantic highlighting
junqiu-lei 1169728
Enable system-generated semantic highlighting processor with automati…
junqiu-lei 5e68aa5
Refactor semantic highlighting with cleaner architecture
junqiu-lei ecbc24b
Implement remoteModelIntegTest Gradle task with unified script and us…
junqiu-lei 96910a5
Add more unit test
junqiu-lei 647ef19
fix remote_model_integ_tests.yml
junqiu-lei 17fb837
Remove test annotation
junqiu-lei 490761b
Add more integ test and update model type check
junqiu-lei 7c1880a
Move batch inference configuration from query parameters to connector
junqiu-lei ab975db
Externalize connector configurations to resource files
junqiu-lei 49d6cd1
Add bwc tests
junqiu-lei a2b5843
Enable semantic highlighting processor by default in cluster settings
junqiu-lei 0b98538
Use unified connector api for bwc
junqiu-lei f049f9c
optimize integTest and remove unused code
junqiu-lei c473c21
Fix BWC tests: Implement proper semantic highlighting search requests
junqiu-lei deae9c0
rebase main with conflicts
junqiu-lei ef11222
optimize bwc ci runner disk space
junqiu-lei 2f422a0
Keep using highlighter for single inference
junqiu-lei eb1e59f
update torchserve script to extend other models
junqiu-lei c65adf0
Add bwc for semantic highlighting
junqiu-lei c581afa
reduce debug logs
junqiu-lei 4514cd9
fix bwc failure
junqiu-lei 1cd5b77
Fix bwc test failure in semantic highlighting
junqiu-lei 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
This file contains hidden or 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,57 @@ | ||
name: Remote Model Integration Tests | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' # every night | ||
push: | ||
branches: | ||
- "*" | ||
- "feature/**" | ||
pull_request: | ||
branches: | ||
- "*" | ||
- "feature/**" | ||
|
||
jobs: | ||
remote-model-single-node-integration-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [21, 24] | ||
steps: | ||
- name: Checkout neural-search | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java ${{ matrix.java }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: Run single-node remote model tests | ||
env: | ||
CI: true | ||
run: | | ||
./gradlew remoteModelIntegTest --info | ||
|
||
remote-model-multi-node-integration-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
nodes: [3] | ||
java: [21] | ||
steps: | ||
- name: Checkout neural-search | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java ${{ matrix.java }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: Run multi-node remote model tests | ||
env: | ||
CI: true | ||
run: | | ||
./gradlew remoteModelIntegTest -PnumNodes=${{ matrix.nodes }} --info |
This file contains hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.