File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2727import org .elasticsearch .common .bytes .BytesReference ;
2828import org .elasticsearch .common .xcontent .XContentHelper ;
2929import org .elasticsearch .common .xcontent .XContentParserUtils ;
30- import org .elasticsearch .common .xcontent .support .XContentMapValues ;
3130import org .elasticsearch .core .CheckedConsumer ;
3231import org .elasticsearch .core .Nullable ;
3332import org .elasticsearch .features .NodeFeature ;
@@ -1077,8 +1076,8 @@ private static Mapper.Builder createEmbeddingsField(
10771076 static DenseVectorFieldMapper .IndexOptions defaultSemanticDenseIndexOptions () {
10781077 // As embedding models for text perform better with BBQ, we aggressively default semantic_text fields to use optimized index
10791078 // options outside of dense_vector defaults
1080- int m = XContentMapValues . nodeIntegerValue ( Lucene99HnswVectorsFormat .DEFAULT_MAX_CONN ) ;
1081- int efConstruction = XContentMapValues . nodeIntegerValue ( Lucene99HnswVectorsFormat .DEFAULT_BEAM_WIDTH ) ;
1079+ int m = Lucene99HnswVectorsFormat .DEFAULT_MAX_CONN ;
1080+ int efConstruction = Lucene99HnswVectorsFormat .DEFAULT_BEAM_WIDTH ;
10821081 DenseVectorFieldMapper .RescoreVector rescoreVector = new DenseVectorFieldMapper .RescoreVector (DEFAULT_RESCORE_OVERSAMPLE );
10831082 return new DenseVectorFieldMapper .BBQHnswIndexOptions (m , efConstruction , rescoreVector );
10841083 }
You can’t perform that action at this time.
0 commit comments