Nhảy tới nội dung

Interface: BaseRetriever

Retrievers retrieve the nodes that most closely match our query in similarity.

Implemented by

Methods

getServiceContext

getServiceContext(): undefined | ServiceContext

Returns

undefined | ServiceContext

Defined in

packages/core/src/Retriever.ts:16


retrieve

retrieve(params): Promise<NodeWithScore<Metadata>[]>

Parameters

NameType
paramsRetrieveParams

Returns

Promise<NodeWithScore<Metadata>[]>

Defined in

packages/core/src/Retriever.ts:15