如果我尝试开始分类,则会收到错误消息:
"message": "invalid classification: basedOnProperties: property 'title' must be of type 'text'"
我正在运行0.22.0
该属性是字符串类型,我不知道是文本类型。是这样吗?
我对/ v1 /分类有POST的查询是:
{
"class": "ClassContainingTitle",
"classifyProperties": ["inOtherclass"],
"basedOnProperties": ["title"],
"type": "contextual"
}
答案 0 :(得分:2)
basedOnProperties
的确应该是op dataType文本,就像错误消息中提到的那样。 (这对于分类字段的矢量化是必需的。
最好的做法是提及一个具有正确dataType(text
)的属性。此类中还没有任何内容,您可以在架构中将此属性的字段从string
更改为text
。
如何开始这种分类也反映在文档https://www.semi.technology/documentation/weaviate/current/features/contextual-classification.html#how-to-use中。