Coco-AI 集成语雀作为语料库进行检索

忘机山人

发布于306天前
博客图片修整中,看不了可以先搜索公众号“忘机山人”看。
说在前面,这个功能需要在语雀后台申请 Personal Access Token。使用的需要超级会员的(不是邀请新用户给的专业会员),所以需要付费使用。




https://appstore.lazycat.cloud/#/shop/detail/xu.deploy.coco-ai




![image-20250417184514581](https://raw.githubusercontent.com/cloudsmithy/picgo-imh/master/image-20250417184514581.png)



然后在语雀后台,也就是https://www.yuque.com/settings/tokens处可以看见申请token的地方,如果你没有超级会员,这个是没办法用的。

![image-20250417184608457](https://raw.githubusercontent.com/cloudsmithy/picgo-imh/master/image-20250417184608457.png)

点击新建,创建 token 分发权限,我这边给了所以的权限,语雀和 Notion 不同,这里给了权限就够了,其他地方无需在给权限。(手动@Notion 还要在文档或者文件夹授权)

![image-20250417184731432](https://raw.githubusercontent.com/cloudsmithy/picgo-imh/master/image-20250417184731432.png)

点击查看详情可以看到 token,这里的 token 是可以反复查看的,由此语雀这一侧的设置完毕。

![image-20250417184902299](https://raw.githubusercontent.com/cloudsmithy/picgo-imh/master/image-20250417184902299.png)

回到 coco-AI,我这边使用的是这个镜像,这里添加了对个人版本语雀的支持。

```bash
infinilabs/coco:0.3.2_NIGHTLY-20250417
```

启动命令如下:

```
docker run -d --name cocoserver -p 9000:9000 infinilabs/coco:0.3.2_NIGHTLY-20250417
```

然后进入后台初始化模型,我这里使用的本地部署的 deepseek:

![image-20250417185219148](https://raw.githubusercontent.com/cloudsmithy/picgo-imh/master/image-20250417185219148.png)

点击数据源,选择 yuque connector

![**image-20250417185638555**](https://raw.githubusercontent.com/cloudsmithy/picgo-imh/master/image-20250417185638555.png)

配置的地方很简单,填入数据源名称和 Token 和刷新时间。

![image-20250417185517578](https://raw.githubusercontent.com/cloudsmithy/picgo-imh/master/image-20250417185517578.png)

然后我们就可以看到刷新的数据了

![image-20250417190023214](https://raw.githubusercontent.com/cloudsmithy/picgo-imh/master/image-20250417190023214.png)

评论

0

暂无评论

说点什么呢~
收藏
0
0
0