Skip to main content

Class: LLamaCloudFileService

Constructors

new LLamaCloudFileService()

new LLamaCloudFileService(): LLamaCloudFileService

Returns

LLamaCloudFileService

Methods

addFileToPipeline()

static addFileToPipeline(projectId, pipelineId, uploadFile, customMetadata): Promise<string>

Upload a file to a pipeline in LlamaCloud

Parameters

projectId: string

pipelineId: string

uploadFile: Blob | File

customMetadata: Record<string, any> = {}

Returns

Promise<string>

Defined in

packages/llamaindex/src/cloud/LLamaCloudFileService.ts:38


getAllProjectsWithPipelines()

static getAllProjectsWithPipelines(): Promise<object[]>

Get list of projects, each project contains a list of pipelines

Returns

Promise<object[]>

Defined in

packages/llamaindex/src/cloud/LLamaCloudFileService.ts:16


getFileUrl()

static getFileUrl(pipelineId, filename): Promise<null | string>

Get download URL for a file in LlamaCloud

Parameters

pipelineId: string

filename: string

Returns

Promise<null | string>

Defined in

packages/llamaindex/src/cloud/LLamaCloudFileService.ts:98