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

Segment的查找,keyword字段只filter了content,没有filter keywords字段 #408

Open
ershixiong89 opened this issue Dec 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ershixiong89
Copy link

如题,dify的segment支持了keywords填入,但是搜索的时候,并不会搜索keywords, 而是只匹配了content

截屏2024-12-18 16 10 59 截屏2024-12-18 16 09 12
Copy link

dosubot bot commented Dec 18, 2024

Hey @ershixiong89! 👋 I'm here to help you with any bugs, questions, or contributions while you wait for a human maintainer.

目前在 DatasetDocumentSegmentListApi 类的 get 方法中,关键词过滤器仅适用于 content 字段,而不包括 keywords 字段。虽然 DocumentSegment 模型支持 keywords 字段的填入,但在搜索时并没有对 keywords 字段进行匹配。根据现有信息,keywords 字段在 JSON 响应中是一个字符串数组,每个字符串代表与文档块相关的一个关键词 [1]。如果需要在搜索中包含 keywords 字段的匹配,可能需要对现有的过滤逻辑进行修改。

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the bug Something isn't working label Dec 18, 2024
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

1 participant