Interface: BaseRetriever
Retrievers retrieve the nodes that most closely match our query in similarity.
Implemented by
Properties
serviceContext
• Optional
serviceContext: ServiceContext
Defined in
packages/core/src/Retriever.ts:16
Methods
retrieve
▸ retrieve(params
): Promise
<NodeWithScore
<Metadata
>[]>
Parameters
Name | Type |
---|---|
params | RetrieveParams |
Returns
Promise
<NodeWithScore
<Metadata
>[]>