向量数据库VikingDB
本地文件支持控制台上传,CLI上传,API上传三种方式。
打开OpenViking首页,点击输入栏右侧“+”,“数据源同步”中选择“TOS上传”
选择将要导入的目录或文件。
选择目标目录,点击“导入”,即可上传。
示例如下,具体命令与参数详见 add-resource-添加资源。
ov add-resource --add-type tos "tos://xxx" --to "viking://resources/xxx"
示例如下,具体命令与参数详见 add_resource-导入资源。
curl -X POST "https://api.vikingdb.cn-beijing.volces.com/openviking/api/v1/resources" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer ZGVmYXVsdA.ZGVmYXVsdA" \ -d '{ "path": "tos://xxx", "to": "viking://resources/xxx", "reason": "connector import" }'