dify icon indicating copy to clipboard operation
dify copied to clipboard

0.15.3 After upgrading, the segmented keywords in the knowledge base cannot be displayed

Open knowyi opened this issue 10 months ago • 5 comments

Self Checks

  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

0..15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

My DIY knowledge base is all based on the universal segmentation mode After upgrading to 0.15.3 Some document keywords cannot be displayed or edited The newly added document keywords are displayed and edited normally Image Image

✔️ Expected Behavior

The knowledge base segmentation can display and edit keywords normally

❌ Actual Behavior

Some document keywords cannot be displayed or edited The newly added document keywords are displayed and edited normally

knowyi avatar Feb 21 '25 06:02 knowyi

Hello @knowyi! I'm here to help you with any bugs, questions, or contributions you may have for Dify. I'm a bot designed to assist you while waiting for a human maintainer.

In version 0.15.3 of Dify, the keyword function in the knowledge base is not displayed and cannot be modified unless you are using the general mode. It is not available in parent-child mode or Q&A mode. To access the keyword editing functionality, you need to ensure that you are using the general mode in your knowledge base [1].

To continue talking to Dosu, mention @dosu.


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

dosubot[bot] avatar Feb 21 '25 06:02 dosubot[bot]

My knowledge base documents are all in generic mode, but the keywords are not displayed Image

knowyi avatar Feb 21 '25 06:02 knowyi

The problem in my case is that even with documents in General mode, the keywords do not appear. I noticed that this problem happens when I include chunks via API. If I upload a text file, the keywords appear, but if I insert the words using API (POST), even if I pass the keyword using keywords, they do not appear.

curl --location --request POST 'https://dify.dominio.com.br/v1/datasets/{dataset_id}/documents/{document_id}/segments'

{ "data": [{ "id": "", "position": 1, "document_id": "", "content": "1", "answer": "1", "word_count": 25, "tokens": 0, "keywords": [ "a" ], ....

I'm using version 15.3

wilsonfe avatar Feb 28 '25 00:02 wilsonfe

Hi, @knowyi. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • Bug reported in Dify version 0.15.3 regarding segmented keywords not displaying or being editable.
  • Issue occurs in self-hosted knowledge base using universal segmentation mode.
  • Problem persists even in generic mode, as confirmed by your image.
  • @wilsonfe notes the issue arises when chunks are added via API, but not when a text file is uploaded.
  • Initial suggestion to use general mode did not resolve the issue.

Next Steps:

  • Please confirm if this issue is still relevant in the latest version of Dify. If so, you can keep the discussion open by commenting here.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Mar 31 '25 16:03 dosubot[bot]

My knowledge base is all text uploaded, and the problem with historical documents still exists when using version 1.1.0

knowyi avatar Apr 02 '25 04:04 knowyi

Has this issue been fixed in version 1.x?

JamisonXing avatar Apr 21 '25 01:04 JamisonXing

Please try 0.15.5 - the latest version before 1.x , or remove and upload the doc to refresh it as a workaround

alterxyz avatar Jun 16 '25 06:06 alterxyz