-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Hey,
I am trying to update the schema, by providing the reranker config. The docs says: "Note: The new collection config must be provided in full,"
But, if I am providing the full configuration, I am getting this error:
status code: 422, error: {"error":[{"message":"vectorizer config of vector \"search\" is immutable"}]}
Without the vectorizer config:
status code: 422, error: {"error":[{"message":"updating schema: TYPE_UPDATE_CLASS: bad request :parse class update: missing config for vector \"search\""}]}
vectorDb.Schema().ClassUpdater().WithClass(productClass).Do(context.TODO())
The schema looks like this:
productClass := &models.Class{
Class: ClassName,
VectorConfig: map[string]models.VectorConfig{
"search": {
VectorIndexType: "hnsw",
Vectorizer: map[string]any{
"text2colbert-jinaai": map[string]any{
"properties": []string{"name", "description", "keywords", "productNumber", "ean", "manufacturer"},
"model": "jina-colbert-v2",
"vectorizePropertyName": true,
},
},
},
},
ModuleConfig: map[string]any{
"reranker-jina": map[string]any{
"model": "jina-reranker-v2-base-multilingual",
},
},
Properties: []*models.Property{
{
Name: "productId",
DataType: schema.DataTypeUUID.PropString(),
},
...
Weaviate: 1.31.5 go-client: v5.2.1
I am stuck here, any suggestions?
cheers
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels