Hello,
Whilst creating collection I am unable to set the “vectorIndexType” to “flat”.
It seems only hnsw works as expected.
When running the following schema, code works as expected:
schema = {
“class”: “ExampleClass”,
“vectorizer”: ‘text2vec-openai’,
“description”: “descr of the class”,
“moduleConfig”: {
“text2vec-contextionary”: {
“vectorizeClassName”: True
}
},
“vectorIndexType”: “hnsw”,
“properties”: [
{
“dataType”: [
“text”
],
“description”: “examplecontent”,
“name”: “text”,
“moduleConfig”: {
“text2vec-openai”: {
“vectorizePropertyName”: False,
“skip” : True
}
}
}
]
}
However, when running this:
schema = {
“class”: “ExampleClass”,
“vectorizer”: ‘text2vec-openai’,
“description”: “descr of the class”,
“moduleConfig”: {
“text2vec-contextionary”: {
“vectorizeClassName”: True
}
},
“vectorIndexType”: “flat”,
“properties”: [
{
“dataType”: [
“text”
],
“description”: “examplecontent”,
“name”: “text”,
“moduleConfig”: {
“text2vec-openai”: {
“vectorizePropertyName”: False,
“skip” : True
}
}
}
]
}
I receive the following response:
weaviate.exceptions.UnexpectedStatusCodeError: Create class! Unexpected status code: 422, with response body: {‘error’: [{‘message’: ‘unrecognized or unsupported vectorIndexType “flat”’}]}.
Could you please help out?
With Regards
Konrad
Server Setup Information
- Weaviate Server Version: 4.5.4
- Deployment Method: docker
- Number of Running Nodes: 1
- Client Language and Version: Python v3