weaviate-python-client
weaviate-python-client copied to clipboard
`vectorizePropertyName` is not passed correctly for named vectors setups
When properties are passed in the collections.create method to Weaviate through the client-side mapping, vectorizePropertyName is not passed properly for the case of named vectors.
It is implemented for the legacy method as here, however vectorizePropertyName needs to be supplied within moduleConfig of the property's Weaviate config for each vectoriser that references this property.
For example, the collection-level named vector configuration:
"vectorConfig": [
{
"title-openai": {
"vectorizer": {
"text2vec-openai": {
"properties": ["title"]
}
}
}
},
{
"title-aws": {
"vectorizer": {
"text2vec-aws": {
"properties": ["title"]
}
}
}
},
]
needs to be propagated to the property-level config for each vectorizer:
{
"name": "title",
"dataType": ["text"],
"moduleConfig": {
"text2vec-openai": {
"vectorizePropertyName": true
},
"text2vec-aws": {
"vectorizePropertyName": true
}
}
}