Skip to main content

Retrieve Chunks

POST 

/api/chunks/retrieve

Retrieve chunks based on a given query.

Request

Body

required

    collection Collectionrequired
    query Queryrequired
    n N

    Default value: 10

    include_text_chunks Include Text Chunks

    Default value: true

    include_image_chunks Include Image Chunks

    Default value: true

    include_summary Include Summary

    Default value: false

Responses

Successful Response

Schema

    summary

    object

    required

    anyOf

    string

    text_results

    object[]

    required

  • Array [

  • chunk_id Chunk Idrequired
    document_id Document Idrequired
    score Scorerequired
    text Textrequired
    raw Rawrequired

    start_char_idx

    object

    Start char index of the chunk.

    anyOf

    integer

    end_char_idx

    object

    End char index of the chunk.

    anyOf

    integer

  • ]

  • image_results

    object[]

    required

  • Array [

  • chunk_id Chunk Idrequired
    document_id Document Idrequired
    score Scorerequired

    image

    object

    required

    Image of the node.

    anyOf

    string

    image_mimetype

    object

    required

    Mimetype of the image.

    anyOf

    string

    image_path

    object

    required

    Path of the image.

    anyOf

    string

    image_url

    object

    required

    URL of the image.

    anyOf

    string

  • ]

Loading...