Skip to main content

Create Batch Pipeline Documents

POST 

/api/v1/pipelines/:pipeline_id/documents

Batch create documents for a pipeline.

Request

Path Parameters

    pipeline_id uuidrequired

Cookie Parameters

    session any

Body

array

required

  • Array [

  • text Text (string)required
    metadata objectrequired
    excluded_embed_metadata_keys string[]
    Default value: []
    excluded_llm_metadata_keys string[]
    Default value: []

    page_positions

    object

    indices in the CloudDocument.text where a new page begins. e.g. Second page starts at index specified by page_positions[1].

    anyOf

  • Array [

  • integer

  • ]

  • id

    object

    anyOf

    string

  • ]

Responses

Successful Response

Schema

  • Array [

  • text Text (string)required
    metadata objectrequired
    excluded_embed_metadata_keys string[]
    Default value: []
    excluded_llm_metadata_keys string[]
    Default value: []

    page_positions

    object

    indices in the CloudDocument.text where a new page begins. e.g. Second page starts at index specified by page_positions[1].

    anyOf

  • Array [

  • integer

  • ]

  • id Id (string)required
  • ]

Loading...