Skip to content

Documents

Create Batch Pipeline Documents
Deprecated
client.Pipelines.Documents.New(ctx, pipelineID, body) (*[]CloudDocument, error)
POST/api/v1/pipelines/{pipeline_id}/documents
Paginated List Pipeline Documents
Deprecated
client.Pipelines.Documents.List(ctx, pipelineID, query) (*PaginatedCloudDocuments[CloudDocument], error)
GET/api/v1/pipelines/{pipeline_id}/documents/paginated
Get Pipeline Document
Deprecated
client.Pipelines.Documents.Get(ctx, documentID, query) (*CloudDocument, error)
GET/api/v1/pipelines/{pipeline_id}/documents/{document_id}
Delete Pipeline Document
Deprecated
client.Pipelines.Documents.Delete(ctx, documentID, body) error
DELETE/api/v1/pipelines/{pipeline_id}/documents/{document_id}
Get Pipeline Document Status
Deprecated
client.Pipelines.Documents.GetStatus(ctx, documentID, query) (*ManagedIngestionStatusResponse, error)
GET/api/v1/pipelines/{pipeline_id}/documents/{document_id}/status
Sync Pipeline Document
Deprecated
client.Pipelines.Documents.Sync(ctx, documentID, body) (*PipelineDocumentSyncResponse, error)
POST/api/v1/pipelines/{pipeline_id}/documents/{document_id}/sync
List Pipeline Document Chunks
Deprecated
client.Pipelines.Documents.GetChunks(ctx, documentID, query) (*[]TextNode, error)
GET/api/v1/pipelines/{pipeline_id}/documents/{document_id}/chunks
Upsert Batch Pipeline Documents
Deprecated
client.Pipelines.Documents.Upsert(ctx, pipelineID, body) (*[]CloudDocument, error)
PUT/api/v1/pipelines/{pipeline_id}/documents
ModelsExpand Collapse
type CloudDocument struct{…}

Cloud document stored in S3.

ID string
Metadata map[string, any]
Text string
ExcludedEmbedMetadataKeys []stringoptional
ExcludedLlmMetadataKeys []stringoptional
PagePositions []int64optional

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

StatusMetadata map[string, any]optional
type CloudDocumentCreate struct{…}

Create a new cloud document.

Metadata map[string, any]
Text string
ID stringoptional
ExcludedEmbedMetadataKeys []stringoptional
ExcludedLlmMetadataKeys []stringoptional
PagePositions []int64optional

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

type TextNode struct{…}

Provided for backward compatibility.

ClassName stringoptional
Embedding []float64optional

Embedding of the node.

EndCharIdx int64optional

End char index of the node.

ExcludedEmbedMetadataKeys []stringoptional

Metadata keys that are excluded from text for the embed model.

ExcludedLlmMetadataKeys []stringoptional

Metadata keys that are excluded from text for the LLM.

ExtraInfo map[string, any]optional

A flat dictionary of metadata fields

ID stringoptional

Unique ID of the node.

MetadataSeperator stringoptional

Separator between metadata fields when converting to string.

MetadataTemplate stringoptional

Template for how metadata is formatted, with {key} and {value} placeholders.

Mimetype stringoptional

MIME type of the node content.

Relationships map[string, TextNodeRelationshipUnion]optional

A mapping of relationships to other node information.

One of the following:
type TextNodeRelationshipRelatedNodeInfo struct{…}
NodeID string
ClassName stringoptional
Hash stringoptional
Metadata map[string, any]optional
NodeType stringoptional
One of the following:
string
One of the following:
const TextNodeRelationshipRelatedNodeInfoNodeType1 TextNodeRelationshipRelatedNodeInfoNodeType = "1"
const TextNodeRelationshipRelatedNodeInfoNodeType2 TextNodeRelationshipRelatedNodeInfoNodeType = "2"
const TextNodeRelationshipRelatedNodeInfoNodeType3 TextNodeRelationshipRelatedNodeInfoNodeType = "3"
const TextNodeRelationshipRelatedNodeInfoNodeType4 TextNodeRelationshipRelatedNodeInfoNodeType = "4"
const TextNodeRelationshipRelatedNodeInfoNodeType5 TextNodeRelationshipRelatedNodeInfoNodeType = "5"
string
type TextNodeRelationshipArray []TextNodeRelationshipArrayItem
NodeID string
ClassName stringoptional
Hash stringoptional
Metadata map[string, any]optional
NodeType stringoptional
One of the following:
string
One of the following:
const TextNodeRelationshipArrayItemNodeType1 TextNodeRelationshipArrayItemNodeType = "1"
const TextNodeRelationshipArrayItemNodeType2 TextNodeRelationshipArrayItemNodeType = "2"
const TextNodeRelationshipArrayItemNodeType3 TextNodeRelationshipArrayItemNodeType = "3"
const TextNodeRelationshipArrayItemNodeType4 TextNodeRelationshipArrayItemNodeType = "4"
const TextNodeRelationshipArrayItemNodeType5 TextNodeRelationshipArrayItemNodeType = "5"
string
StartCharIdx int64optional

Start char index of the node.

Text stringoptional

Text content of the node.

TextTemplate stringoptional

Template for how text is formatted, with {content} and {metadata_str} placeholders.

Note for AI agents: this documentation is built for programmatic access. - Overview of all docs: https://developers.llamaindex.ai/llms.txt - Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md - Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters. - A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/python/shared/mcp/