llamaindex
Version:
<p align="center"> <img height="100" width="100" alt="LlamaIndex logo" src="https://ts.llamaindex.ai/square.svg" /> </p> <h1 align="center">LlamaIndex.TS</h1> <h3 align="center"> Data framework for your LLM application. </h3>
24 lines (23 loc) • 848 B
TypeScript
export declare class LLamaCloudFileService {
/**
* Get list of projects, each project contains a list of pipelines
*/
static getAllProjectsWithPipelines(): Promise<{
pipelines: import("@llamaindex/cloud/api").Pipeline[];
name: string;
id: string;
created_at?: string | null;
updated_at?: string | null;
ad_hoc_eval_dataset_id?: string | null;
organization_id: string;
is_default?: boolean;
}[]>;
/**
* Upload a file to a pipeline in LlamaCloud
*/
static addFileToPipeline(projectId: string, pipelineId: string, uploadFile: File | Blob, customMetadata?: Record<string, any>): Promise<string>;
/**
* Get download URL for a file in LlamaCloud
*/
static getFileUrl(pipelineId: string, filename: string): Promise<string | null>;
}