Skip to content

Commit b674eb9

Browse files
committed
upgrade embedding test cases
1 parent c140c58 commit b674eb9

1 file changed

Lines changed: 2 additions & 21 deletions

File tree

driver-sync/src/test/functional/com/mongodb/client/vector/AbstractAutomatedEmbeddingVectorSearchFunctionalTest.java

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.bson.codecs.configuration.CodecRegistry;
2929
import org.bson.codecs.pojo.PojoCodecProvider;
3030
import org.bson.conversions.Bson;
31+
import org.junit.Ignore;
3132
import org.junit.jupiter.api.AfterEach;
3233
import org.junit.jupiter.api.Assertions;
3334
import org.junit.jupiter.api.Assumptions;
@@ -213,27 +214,6 @@ private void insertDocumentsForEmbedding() {
213214
));
214215
}
215216

216-
@Test
217-
@DisplayName("should create auto embedding index with all optional fields")
218-
void shouldCreateAutoEmbeddingIndexWithAllOptionalFields() {
219-
mongoClient.getDatabase(getDatabaseName()).createCollection(getCollectionName());
220-
SearchIndexModel indexModel = new SearchIndexModel(
221-
INDEX_NAME,
222-
new Document(
223-
"fields",
224-
Collections.singletonList(
225-
new Document("type", "autoEmbed")
226-
.append("modality", "text")
227-
.append("path", FIELD_SEARCH_PATH)
228-
.append("model", "voyage-4-large")
229-
.append("quantization", "binary")
230-
.append("similarity", "euclidean")
231-
)),
232-
SearchIndexType.vectorSearch()
233-
);
234-
List<String> result = documentCollection.createSearchIndexes(Collections.singletonList(indexModel));
235-
Assertions.assertFalse(result.isEmpty());
236-
}
237217

238218
@ParameterizedTest(name = "should create auto embedding index with {0} quantization")
239219
@ValueSource(strings = {"float", "scalar", "binary", "binaryNoRescore"})
@@ -259,6 +239,7 @@ void shouldCreateAutoEmbeddingIndexWithQuantization(final String quantization) {
259239

260240
@Test
261241
@DisplayName("should create auto embedding index with custom numDimensions")
242+
@Ignore("Currently numDimensions can't be used, it fails with server error: 'Invalid numDimensions value for autoEmbed field in index: test_auto_embed. Expected an integer.'")
262243
void shouldCreateAutoEmbeddingIndexWithCustomNumDimensions() {
263244
mongoClient.getDatabase(getDatabaseName()).createCollection(getCollectionName());
264245
SearchIndexModel indexModel = new SearchIndexModel(

0 commit comments

Comments
 (0)