Use the knowledge base API to adding a segment of a document, will not be automatically indexed? #3586

Closed
opened 2026-02-21 17:59:36 -05:00 by yindo · 0 comments
Owner

Originally created by @nne998 on GitHub (May 22, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Dify version

v0.6.8

Cloud or Self Hosted

Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

  1. Setting up an knowledge base:
    image

  2. Use the knowledge base API to adding a segment of a document

e.g.

curl --location --request POST 'http://10.4.127.135/v1/datasets/c8674072-2799-4585-95f0-976746f8e0bb/documents/aa2316d3-233c-45be-a294-8526809f0f74/segments' \
--header 'Authorization: Bearer dataset-dUyXKXp2TtFsWYo1UdYufpKI' \
--header 'Content-Type: application/json' \
--data-raw '{"segments": [{"content": "hello world test ","keywords": ["a"]}]}'

It has been added , and the status is shown "Enabled".
image

  1. But when I try retrieval testing, it doesn't show up.
    image

✔️ Expected Behavior

It can be queried during recall.

Actual Behavior

Cannot be recalled

Originally created by @nne998 on GitHub (May 22, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version v0.6.8 ### Cloud or Self Hosted Self Hosted (Docker), Self Hosted (Source) ### Steps to reproduce 1. Setting up an knowledge base: ![image](https://github.com/langgenius/dify/assets/148901/905e4e11-6743-4cca-81ba-40ae1eadecfc) 2. Use the knowledge base API to adding a segment of a document e.g. ``` curl --location --request POST 'http://10.4.127.135/v1/datasets/c8674072-2799-4585-95f0-976746f8e0bb/documents/aa2316d3-233c-45be-a294-8526809f0f74/segments' \ --header 'Authorization: Bearer dataset-dUyXKXp2TtFsWYo1UdYufpKI' \ --header 'Content-Type: application/json' \ --data-raw '{"segments": [{"content": "hello world test ","keywords": ["a"]}]}' ``` It has been added , and the status is shown "Enabled". ![image](https://github.com/langgenius/dify/assets/148901/e7989ad7-05ed-4045-92f6-4b744b28ced2) 3. But when I try retrieval testing, it doesn't show up. ![image](https://github.com/langgenius/dify/assets/148901/23fe3de0-f13f-431f-804e-f4a562c70d4c) ### ✔️ Expected Behavior It can be queried during recall. ### ❌ Actual Behavior Cannot be recalled
yindo added the 🐞 bug label 2026-02-21 17:59:36 -05:00
yindo closed this issue 2026-02-21 17:59:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#3586