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