diff --git a/src/main/java/org/opensearch/neuralsearch/processor/InferenceProcessor.java b/src/main/java/org/opensearch/neuralsearch/processor/InferenceProcessor.java index bbb73de85..98da1c6c2 100644 --- a/src/main/java/org/opensearch/neuralsearch/processor/InferenceProcessor.java +++ b/src/main/java/org/opensearch/neuralsearch/processor/InferenceProcessor.java @@ -214,7 +214,7 @@ private void validateEmbeddingFieldsValue(IngestDocument ingestDocument) { fieldMap, 1, ProcessorDocumentUtils.getMaxDepth(sourceAndMetadataMap, clusterService, environment), - true + false ); } diff --git a/src/main/java/org/opensearch/neuralsearch/processor/TextChunkingProcessor.java b/src/main/java/org/opensearch/neuralsearch/processor/TextChunkingProcessor.java index 2a2526560..989092d26 100644 --- a/src/main/java/org/opensearch/neuralsearch/processor/TextChunkingProcessor.java +++ b/src/main/java/org/opensearch/neuralsearch/processor/TextChunkingProcessor.java @@ -173,7 +173,7 @@ public IngestDocument execute(final IngestDocument ingestDocument) { fieldMap, 1, ProcessorDocumentUtils.getMaxDepth(sourceAndMetadataMap, clusterService, environment), - false + true ); // fixed token length algorithm needs runtime parameter max_token_count for tokenization Map runtimeParameters = new HashMap<>();