2121import io .weaviate .client6 .v1 .api .WeaviateClient ;
2222import io .weaviate .client6 .v1 .api .collections .Property ;
2323import io .weaviate .client6 .v1 .api .collections .ReferenceProperty ;
24- import io .weaviate .client6 .v1 .api .collections .Vectorizers ;
24+ import io .weaviate .client6 .v1 .api .collections .VectorConfig ;
2525import io .weaviate .client6 .v1 .api .collections .Vectors ;
2626import io .weaviate .client6 .v1 .api .collections .WeaviateMetadata ;
2727import io .weaviate .client6 .v1 .api .collections .WeaviateObject ;
@@ -134,7 +134,7 @@ private static Map<String, float[]> populateTest(int n) throws IOException {
134134 private static void createTestCollection () throws IOException {
135135 client .collections .create (COLLECTION , cfg -> cfg
136136 .properties (Property .text ("category" ))
137- .vectorConfig (Vectorizers .selfProvided (VECTOR_INDEX )));
137+ .vectorConfig (VectorConfig .selfProvided (VECTOR_INDEX )));
138138 }
139139
140140 @ Test
@@ -143,7 +143,7 @@ public void testNearText() throws IOException {
143143 client .collections .create (nsSongs ,
144144 col -> col
145145 .properties (Property .text ("title" ))
146- .vectorConfig (Vectorizers .text2vecContextionary ()));
146+ .vectorConfig (VectorConfig .text2vecContextionary ()));
147147
148148 var songs = client .collections .use (nsSongs );
149149 var submarine = songs .data .insert (Map .of ("title" , "Yellow Submarine" ));
@@ -165,7 +165,7 @@ public void testNearText() throws IOException {
165165
166166 @ Test
167167 public void testNearText_groupBy () throws IOException {
168- var vectorizer = Vectorizers .text2vecContextionary ();
168+ var vectorizer = VectorConfig .text2vecContextionary ();
169169
170170 var nsArtists = ns ("Artists" );
171171 client .collections .create (nsArtists ,
@@ -209,7 +209,7 @@ public void testNearImage() throws IOException {
209209 .properties (
210210 Property .text ("breed" ),
211211 Property .blob ("img" ))
212- .vectorConfig (Vectorizers .img2vecNeural (
212+ .vectorConfig (VectorConfig .img2vecNeural (
213213 i2v -> i2v .imageFields ("img" ))));
214214
215215 var cats = client .collections .use (nsCats );
@@ -391,7 +391,7 @@ public void testNearObject() throws IOException {
391391 client .collections .create (nsAnimals ,
392392 collection -> collection
393393 .properties (Property .text ("kind" ))
394- .vectorConfig (Vectorizers .text2vecContextionary ()));
394+ .vectorConfig (VectorConfig .text2vecContextionary ()));
395395
396396 var animals = client .collections .use (nsAnimals );
397397
@@ -420,7 +420,7 @@ public void testHybrid() throws IOException {
420420 client .collections .create (nsHobbies ,
421421 collection -> collection
422422 .properties (Property .text ("name" ), Property .text ("description" ))
423- .vectorConfig (Vectorizers .text2vecContextionary ()));
423+ .vectorConfig (VectorConfig .text2vecContextionary ()));
424424
425425 var hobbies = client .collections .use (nsHobbies );
426426
@@ -453,7 +453,7 @@ public void testBadRequest() throws IOException {
453453 client .collections .create (nsThings ,
454454 collection -> collection
455455 .properties (Property .text ("name" ))
456- .vectorConfig (Vectorizers .text2vecContextionary ()));
456+ .vectorConfig (VectorConfig .text2vecContextionary ()));
457457
458458 var things = client .collections .use (nsThings );
459459 var balloon = things .data .insert (Map .of ("name" , "balloon" ));
@@ -470,7 +470,7 @@ public void testBadRequest_async() throws Throwable {
470470 async .collections .create (nsThings ,
471471 collection -> collection
472472 .properties (Property .text ("name" ))
473- .vectorConfig (Vectorizers .text2vecContextionary ()))
473+ .vectorConfig (VectorConfig .text2vecContextionary ()))
474474 .join ();
475475
476476 var things = async .collections .use (nsThings );
0 commit comments