Class: BaseRetriever
schema.BaseRetriever
Base Index class. All indexes should extend this class.
Hierarchy
BaseRetriever
Constructors
constructor
• new BaseRetriever()
Methods
getRelevantDocuments
▸ Abstract
getRelevantDocuments(query
): Promise
<Document
<Record
<string
, any
>>[]>
Parameters
Name | Type |
---|---|
query | string |
Returns
Promise
<Document
<Record
<string
, any
>>[]>
Defined in
langchain/src/schema/index.ts:134