vectorWeights未填充给text2vec-transformers。

huangapple go评论65阅读模式
英文:

vectorWeights not filled for text2vec-transformers

问题

不确定这是一个错误还是预期行为,但在使用text2vec-transformers作为默认的向量化器时,GraphQL的nearText正常工作。因此,它检索到了附近的对象。然而,该对象的vectorWeights字段为空。

这是否符合预期,为什么不能直接在该字段中使用该向量?

您是否必须手动调用端点来第二次获取每个对象,并将这些值存储在自定义属性中?

英文:

Not sure if this is a bug or the intended behaviour but while using text2vec-transformers as a default vectorizer, graphQl nearText is working ok. So it retrieved nearby objects. However, the field vectorWeights of object are empty.

Is that expected and why cant we directly have the vector available in that field.

Do you have to manually call the endpoint for each of your object a second time and store those values in a custom property?

答案1

得分: 0

The vector of an object is stored under the _additional property. You can edit your nearText query to return this field this property like in this example.

英文:

The vector of an object is stored under the _additional property. You can edit your nearText query to return this field this property like in this example

huangapple
  • 本文由 发表于 2023年6月5日 03:33:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/76402106.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定