如果我尝试启动一个分类,我会收到错误消息:
"message": "invalid classification: basedOnProperties: property 'title' must be of type 'text'"
我运行的是0.22.0
这个属性的类型是字符串,我不知道有没有文本类型。是这样的吗?
我发布到/v1/分类中的查询是:
{
"class": "ClassContainingTitle",
"classifyProperties": ["inOtherclass"],
"basedOnProperties": ["title"],
"type": "contextual"
}发布于 2020-02-02 04:02:33
basedOnProperties确实应该是op dataType文本,就像错误消息提到的那样。(这对于分类字段的矢量化是必需的)。
最好的做法是提到一个具有正确dataType (text)的属性。如果此类中还没有,则可以在模式中将此属性的字段从string更改为text。
如何开始这种分类也反映在文档https://www.semi.technology/documentation/weaviate/current/features/contextual-classification.html#how-to-use中。
https://stackoverflow.com/questions/60019436
复制相似问题