最近,Firestore 添加了矢量搜索,如下所示:
https://firebase.google.com/docs/firestore/vector-search
添加 FieldValue.vector([...]) 的代码示例位于 python 和 Node.js 中
Dart 库
cloud_firestore
有 FieldValue.Vector 来保存文档吗?
查询方法
collection.find_nearest
怎么样?
firebaser在这里
在 Firestore 中读取、写入和搜索矢量数据的功能目前仅在(服务器端)Node.js 和 Python SDK 中可用。它尚未在任何客户端 SDK 中提供,包括 Flutter 的 SDK。