Skip to content

Commit 76ee272

Browse files
junqiu-leiYeonghyeonKO
authored andcommitted
Update semantic highlighter test model (opensearch-project#1259)
Signed-off-by: Junqiu Lei <[email protected]> Signed-off-by: yeonghyeonKo <[email protected]>
1 parent 1734dd1 commit 76ee272

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/resources/processor/UploadSentenceHighlightingModelRequestBody.json renamed to src/test/resources/highlight/UploadSentenceHighlightingModelRequestBody.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Sentence highlighting question answering model for testing",
66
"model_format": "TORCH_SCRIPT",
77
"model_group_id": "%s",
8-
"model_content_hash_value": "84eddafdc1b23c13b2e4bbeb9d137aa7ae6b1aab37b91f99f4d9f9beb322a049",
8+
"model_content_hash_value": "15e97d44ca59f6cd3e977398e38a9cea401eb87f360b92ca9dd8b30afd41f926",
99
"url": "https://github.com/opensearch-project/ml-commons/blob/main/ml-algorithms/src/test/resources/org/opensearch/ml/engine/algorithms/question_answering/sentence_highlighting_qa_model_pt.zip?raw=true",
1010
"model_config": {
1111
"model_type": "sentence_highlighting",

src/testFixtures/java/org/opensearch/neuralsearch/BaseNeuralSearchIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ protected String prepareSparseEncodingModel() {
304304
@SneakyThrows
305305
protected String prepareSentenceHighlightingModel() {
306306
String requestBody = Files.readString(
307-
Path.of(Objects.requireNonNull(classLoader.getResource("processor/UploadSentenceHighlightingModelRequestBody.json")).toURI())
307+
Path.of(Objects.requireNonNull(classLoader.getResource("highlight/UploadSentenceHighlightingModelRequestBody.json")).toURI())
308308
);
309309
String modelId = registerModelGroupAndUploadModel(requestBody);
310310
loadModel(modelId);

0 commit comments

Comments
 (0)