Skip to content

[Question]: HTTP API-list chunks cannot get chunks in Markdown files #11790

@Kevinona

Description

@Kevinona

Self Checks

  • 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).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Describe your problem

I want to use list chunks method to get chunks down the document. And the type of document is markdown.
So I use the command below, but the response dose not contains any chunks.
curl --request GET \ --url http://{address}/api/v1/datasets/{dataset_id}/documents/{document_id}/chunks --header 'Authorization: Bearer <YOUR_API_KEY>'

response:

Image

The chunks list is empty. But in doc, "chunk_count": 5. And I can see those chunks in the front end. those chunks are enabled.

However, if the type is pdf. The api works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions