Get Pipeline Document
GET/api/v1/pipelines/:pipeline_id/documents/:document_id
Return a single document for a pipeline.
Request
Path Parameters
document_id Document Idrequired
pipeline_id uuidrequired
Cookie Parameters
session any
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
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
integer
id Id (string)required
{
"text": "string",
"metadata": {},
"excluded_embed_metadata_keys": [
"string"
],
"excluded_llm_metadata_keys": [
"string"
],
"page_positions": [
null
],
"id": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}