Skip to content

Commit

Permalink
rebase main
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <[email protected]>
  • Loading branch information
zane-neo committed Oct 21, 2024
1 parent 86d193f commit 179ce62
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ private String uploadTextEmbeddingModel(String requestBody) throws Exception {
return registerModelGroupAndUploadModel(requestBody);
}

private String uploadTextEmbeddingModel() throws Exception {
String requestBody = Files.readString(Path.of(classLoader.getResource("processor/UploadModelRequestBody.json").toURI()));
return registerModelGroupAndUploadModel(requestBody);
}

private void createTextEmbeddingIndex() throws Exception {
createIndexWithConfiguration(
INDEX_NAME,
Expand All @@ -262,7 +267,7 @@ public void testAsymmetricTextEmbeddingProcessor() throws Exception {
loadModel(modelId);
createPipelineProcessor(modelId, PIPELINE_NAME, ProcessorType.TEXT_EMBEDDING);
createTextEmbeddingIndex();
ingestDocument();
ingestDocument(INGEST_DOC1, null);
assertEquals(1, getDocCount(INDEX_NAME));
} finally {
wipeOfTestResources(INDEX_NAME, PIPELINE_NAME, modelId, null);
Expand Down

0 comments on commit 179ce62

Please sign in to comment.