英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论