在本地部署Ollama的embedding模型时,如果在CherryStudio中遇到无法使用的问题,可以尝试以下解决方案。首先确认Ollama版本为0.13.1,CherryStudio版本为v1.7.1。虽然模型可以通过检测,但在创建本地知识库时可能会遇到问题,如报错显示「KnowledgeBase creation failed: Error: Error invoking remote method ‘knowledge-base:create’: Error: Failed to create RAGApplication: ResponseError: 404 page not found」。在尝试了在Ollama API地址后添加「#」的方法无效后,可以尝试在模型服务下新添加一个模型,提供商名称自定义,类型选择为OpenAI。填写一个随意的API密钥,确保API地址与CherryStudio中Ollama的地址一致,主要是端口号一致。添加本地模型后,在知识库中添加知识库,选择刚添加的模型作为嵌入模型。点击确认后,知识库应创建成功。请注意,以上操作需要Ollama一直在本地运行。

标签: none

评论已关闭