Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提示“Quote type error” #1490

Closed
6 of 7 tasks
guanyouhui opened this issue May 15, 2024 · 1 comment
Closed
6 of 7 tasks

提示“Quote type error” #1490

guanyouhui opened this issue May 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@guanyouhui
Copy link

guanyouhui commented May 15, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号: 4.8

问题描述, 日志截图
我用高级编排想实现一个功能,用户问题如果是@某一个关键词,就回复已经设置为某个知识库,同时设置全局变量为“测试”(知识库名称),同理可以设置其他知识库名称,如果没有@关键词,这个时候判断,如果全局变量不是空的,说明设置过全局变量,就走知识库搜索,知识库搜索这边“选择知识库”用了全局变量,比如之前设置的知识库名称为“测试”
8f5705ff40136a0adf70e1bcb4e9d7d
图如上是这样的,但是实际调试发现比如@流程,回复了“已切换到知识库”,再发送随便内容,这个时候会报错提示"Quote type error"
d93eb83c15705ba8f979a4d875ea585
想问一下,是不是全局变量设置成知识库的名称是不行的,需要其他什么参数呢?
b833132ee95de3292df226b82c3aba4
看使用帮助里面这个,显示“404 Not Found”,烦请能提供相关帮助
复现步骤

预期结果
提供能正确设置全局变量的参数,使得“知识库搜索”功能,使用全局变量时,可以正常使用,或者有渠道能查询到相关需要的参数信息
相关截图

@guanyouhui guanyouhui added the bug Something isn't working label May 15, 2024
@nongmo677
Copy link
Contributor

你这个功能吧,最关键的点在于怎么传入知识库信息,实际上你并不能简单传入知识库名称或者知识库id
这里后台的逻辑是需要你传入的是一个列表,传入的类型参考以下代码

export type SelectedDatasetType = { datasetId: string; vectorModel: VectorModelItemType }[];

类似于要传入这么多内容

[
    {
        "datasetId": "66444f9542fabe3144830033",
        "vectorModel": {
            "model": "text-embedding-ada-002",
            "name": "text-embedding-ada-002",
            "avatar": "/imgs/model/openai.svg",
            "defaultToken": 512,
            "maxToken": 3000,
            "weight": 100,
            "charsPointsPrice": 0.1
        }
    }
]

直接使用全局变量这件事可能不是那么好实现,建议换成http组件
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants