@@ -1405,6 +1405,67 @@ def test_config_multi_vector_disabled(
14051405 assert conf .multi_vector is None
14061406
14071407
1408+ def test_config_muvera_enabled (
1409+ collection_factory : CollectionFactory ,
1410+ ) -> None :
1411+ dummy = collection_factory ("dummy" , ports = (8086 , 50057 ))
1412+ if dummy ._connection ._weaviate_version .is_lower_than (1 , 31 , 0 ):
1413+ pytest .skip ("Muvera is not supported in Weaviate versions lower than 1.31.0" )
1414+
1415+ collection = collection_factory (
1416+ ports = (8086 , 50057 ),
1417+ properties = [Property (name = "name" , data_type = DataType .TEXT )],
1418+ vectorizer_config = [
1419+ Configure .NamedVectors .text2colbert_jinaai (
1420+ name = "vec" ,
1421+ vectorize_collection_name = False ,
1422+ vector_index_config = Configure .VectorIndex .hnsw (
1423+ multi_vector = Configure .VectorIndex .MultiVector .multi_vector (
1424+ encoding = Configure .VectorIndex .MultiVector .Encoding .muvera ()
1425+ )
1426+ ),
1427+ )
1428+ ],
1429+ )
1430+ config = collection .config .get ()
1431+ assert config .vector_config is not None
1432+ conf = config .vector_config ["vec" ].vector_index_config
1433+ assert isinstance (conf , _VectorIndexConfigHNSW )
1434+ if collection ._connection ._weaviate_version .is_lower_than (1 , 31 , 0 ):
1435+ assert conf .multi_vector is None
1436+ else :
1437+ assert conf .multi_vector is not None
1438+ assert conf .multi_vector .encoding is not None
1439+
1440+
1441+ def test_config_muvera_disabled (
1442+ collection_factory : CollectionFactory ,
1443+ ) -> None :
1444+ dummy = collection_factory ("dummy" , ports = (8086 , 50057 ))
1445+ if dummy ._connection ._weaviate_version .is_lower_than (1 , 29 , 0 ):
1446+ pytest .skip ("Multivector is not supported in Weaviate versions lower than 1.29.0" )
1447+
1448+ collection = collection_factory (
1449+ ports = (8086 , 50057 ),
1450+ properties = [Property (name = "name" , data_type = DataType .TEXT )],
1451+ vectorizer_config = [
1452+ Configure .NamedVectors .text2colbert_jinaai (
1453+ name = "vec" ,
1454+ vectorize_collection_name = False ,
1455+ vector_index_config = Configure .VectorIndex .hnsw (
1456+ multi_vector = Configure .VectorIndex .MultiVector .multi_vector ()
1457+ ),
1458+ )
1459+ ],
1460+ )
1461+ config = collection .config .get ()
1462+ assert config .vector_config is not None
1463+ conf = config .vector_config ["vec" ].vector_index_config
1464+ assert isinstance (conf , _VectorIndexConfigHNSW )
1465+ assert conf .multi_vector is not None
1466+ assert conf .multi_vector .encoding is None
1467+
1468+
14081469@pytest .mark .parametrize (
14091470 "generative_config" ,
14101471 [
0 commit comments