Skip to main content

Class: BaseRetriever

schema.BaseRetriever

Base Index class. All indexes should extend this class.

Hierarchy

Constructors

constructor

new BaseRetriever()

Methods

getRelevantDocuments

Abstract getRelevantDocuments(query): Promise<Document<Record<string, any>>[]>

Parameters

NameType
querystring

Returns

Promise<Document<Record<string, any>>[]>

Defined in

langchain/src/schema/index.ts:134