Logo
Classes

LLamaCloudFileService

Defined in: llamaindex/src/cloud/LLamaCloudFileService.ts:12

Constructors

new LLamaCloudFileService()

new LLamaCloudFileService(): LLamaCloudFileService

Returns

LLamaCloudFileService

Methods

getAllProjectsWithPipelines()

static getAllProjectsWithPipelines(): Promise<object[]>

Defined in: llamaindex/src/cloud/LLamaCloudFileService.ts:16

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

Returns

Promise<object[]>


addFileToPipeline()

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

Defined in: llamaindex/src/cloud/LLamaCloudFileService.ts:38

Upload a file to a pipeline in LlamaCloud

Parameters

projectId

string

pipelineId

string

uploadFile

Blob | File

customMetadata

Record<string, any> = {}

Returns

Promise<string>


getFileUrl()

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

Defined in: llamaindex/src/cloud/LLamaCloudFileService.ts:98

Get download URL for a file in LlamaCloud

Parameters

pipelineId

string

filename

string

Returns

Promise<null | string>

On this page