diff --git a/pom.xml b/pom.xml
index 57de3cef..43d0443e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,8 +56,8 @@
2.13.2
5.5.1
3.20.0
- 5.13.4
- 1.21.3
+ 4.13.2
+ 2.0.2
3.27.6
1.0.4
5.20.0
@@ -134,13 +134,13 @@
org.testcontainers
- weaviate
+ testcontainers-weaviate
${testcontainers.version}
test
org.testcontainers
- minio
+ testcontainers-minio
${testcontainers.version}
test
@@ -150,6 +150,12 @@
${assertj-core.version}
test
+
+ junit
+ junit
+ ${junit.version}
+ test
+
com.jparams
jparams-junit4
diff --git a/src/it/java/io/weaviate/integration/VectorizersITest.java b/src/it/java/io/weaviate/integration/VectorizersITest.java
new file mode 100644
index 00000000..69c6e50a
--- /dev/null
+++ b/src/it/java/io/weaviate/integration/VectorizersITest.java
@@ -0,0 +1,81 @@
+package io.weaviate.integration;
+
+import java.io.IOException;
+import java.util.Map;
+
+import org.junit.ClassRule;
+import org.junit.Test;
+import org.junit.rules.TestRule;
+
+import io.weaviate.ConcurrentTest;
+import io.weaviate.client6.v1.api.WeaviateClient;
+import io.weaviate.client6.v1.api.collections.Property;
+import io.weaviate.client6.v1.api.collections.VectorConfig;
+import io.weaviate.client6.v1.api.collections.WeaviateObject;
+import io.weaviate.client6.v1.api.collections.query.FetchObjectById;
+import io.weaviate.containers.Container;
+import io.weaviate.containers.Model2Vec;
+import io.weaviate.containers.Weaviate;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+public class VectorizersITest extends ConcurrentTest {
+ private static final Container.ContainerGroup compose = Container.compose(
+ Weaviate.custom()
+ .withModel2VecUrl(Model2Vec.URL)
+ .build(),
+ Container.MODEL2VEC);
+ @ClassRule // Bind containers to the lifetime of the test
+ public static final TestRule _rule = compose.asTestRule();
+ private static final WeaviateClient client = compose.getClient();
+
+ @Test
+ public void testVectorizerModel2VecPropeties() throws IOException {
+ var collectionName = ns("Model2Vec2NamedVectors");
+ client.collections.create(collectionName,
+ col -> col
+ .properties(Property.text("name"), Property.text("author"))
+ .vectorConfig(
+ VectorConfig.text2vecModel2Vec("name", v -> v.sourceProperties("name")),
+ VectorConfig.text2vecModel2Vec("author", v -> v.sourceProperties("author"))
+ )
+ );
+
+ var model2vec = client.collections.use(collectionName);
+ assertThat(model2vec).isNotNull();
+
+ String uuid1 = "00000000-0000-0000-0000-000000000001";
+ WeaviateObject