Skip to main content

Upsert Batch Pipeline Documents

PUT 

/api/v1/pipelines/:pipeline_id/documents

Batch create or update a document 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
  • ]