Skip to main content

Class: KeywordTableRAKERetriever

Extends

  • BaseKeywordTableRetriever

Constructors

new KeywordTableRAKERetriever()

new KeywordTableRAKERetriever(__namedParameters): KeywordTableRAKERetriever

Parameters

__namedParameters

__namedParameters.index: KeywordTableIndex

__namedParameters.keywordExtractTemplate?

__namedParameters.maxKeywordsPerQuery: number = 10

__namedParameters.numChunksPerQuery: number = 10

__namedParameters.queryKeywordExtractTemplate?

Returns

KeywordTableRAKERetriever

Inherited from

BaseKeywordTableRetriever.constructor

Defined in

packages/llamaindex/src/indices/keyword/index.ts:64

Properties

docstore

protected docstore: BaseDocumentStore

Inherited from

BaseKeywordTableRetriever.docstore

Defined in

packages/llamaindex/src/indices/keyword/index.ts:56


index

protected index: KeywordTableIndex

Inherited from

BaseKeywordTableRetriever.index

Defined in

packages/llamaindex/src/indices/keyword/index.ts:54


indexStruct

protected indexStruct: KeywordTable

Inherited from

BaseKeywordTableRetriever.indexStruct

Defined in

packages/llamaindex/src/indices/keyword/index.ts:55


keywordExtractTemplate()

protected keywordExtractTemplate: (__namedParameters) => string

Parameters

__namedParameters

__namedParameters.context: undefined | string = ""

__namedParameters.maxKeywords: undefined | number = 10

Returns

string

Inherited from

BaseKeywordTableRetriever.keywordExtractTemplate

Defined in

packages/llamaindex/src/indices/keyword/index.ts:61


llm

protected llm: LLM<object, object>

Inherited from

BaseKeywordTableRetriever.llm

Defined in

packages/llamaindex/src/indices/keyword/index.ts:57


maxKeywordsPerQuery

protected maxKeywordsPerQuery: number

Inherited from

BaseKeywordTableRetriever.maxKeywordsPerQuery

Defined in

packages/llamaindex/src/indices/keyword/index.ts:59


numChunksPerQuery

protected numChunksPerQuery: number

Inherited from

BaseKeywordTableRetriever.numChunksPerQuery

Defined in

packages/llamaindex/src/indices/keyword/index.ts:60


queryKeywordExtractTemplate()

protected queryKeywordExtractTemplate: (__namedParameters) => string

Parameters

__namedParameters

__namedParameters.maxKeywords: undefined | number = 10

__namedParameters.question: undefined | string = ""

Returns

string

Inherited from

BaseKeywordTableRetriever.queryKeywordExtractTemplate

Defined in

packages/llamaindex/src/indices/keyword/index.ts:62

Methods

getKeywords()

getKeywords(query): Promise<string[]>

Parameters

query: string

Returns

Promise<string[]>

Overrides

BaseKeywordTableRetriever.getKeywords

Defined in

packages/llamaindex/src/indices/keyword/index.ts:140


retrieve()

retrieve(__namedParameters): Promise<NodeWithScore<Metadata>[]>

Parameters

__namedParameters: RetrieveParams

Returns

Promise<NodeWithScore<Metadata>[]>

Inherited from

BaseKeywordTableRetriever.retrieve

Defined in

packages/llamaindex/src/indices/keyword/index.ts:92