انتقل إلى المحتوى الرئيسي

Interface: BaseRetriever

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

Properties

serviceContext?

optional serviceContext: ServiceContext

Source

packages/core/src/Retriever.ts:17

Methods

retrieve()

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

Parameters

params: RetrieveParams

Returns

Promise <NodeWithScore <Metadata>[]>

Source

packages/core/src/Retriever.ts:14