Interface: BaseRetriever
Retrievers retrieve the nodes that most closely match our query in similarity.
Implemented by
Methods
getServiceContext
▸ getServiceContext(): ServiceContext
Returns
Defined in
packages/core/src/Retriever.ts:14
retrieve
▸ retrieve(query
, parentEvent?
, preFilters?
): Promise
<NodeWithScore
<Metadata
>[]>
Parameters
Name | Type |
---|---|
query | string |
parentEvent? | Event |
preFilters? | unknown |
Returns
Promise
<NodeWithScore
<Metadata
>[]>