跳到主要内容

Class: LlamaCloudIndex

Constructors

constructor

new LlamaCloudIndex(params): LlamaCloudIndex

Parameters

NameType
paramsCloudConstructorParams

Returns

LlamaCloudIndex

Defined in

packages/core/src/cloud/LlamaCloudIndex.ts:12

Properties

params

params: CloudConstructorParams

Defined in

packages/core/src/cloud/LlamaCloudIndex.ts:10

Methods

asQueryEngine

asQueryEngine(params?): BaseQueryEngine

Parameters

NameType
params?{ nodePostprocessors?: BaseNodePostprocessor[] ; preFilters?: unknown ; responseSynthesizer?: BaseSynthesizer } & Omit<RetrievalParams, "query" | "searchFilters" | "pipelineId" | "className"> & { similarityTopK?: number }

Returns

BaseQueryEngine

Defined in

packages/core/src/cloud/LlamaCloudIndex.ts:20


asRetriever

asRetriever(params): BaseRetriever

Parameters

NameType
paramsRetrieveParams

Returns

BaseRetriever

Defined in

packages/core/src/cloud/LlamaCloudIndex.ts:16