Class: KeywordTableRAKERetriever
Extends
BaseKeywordTableRetriever
Constructors
new KeywordTableRAKERetriever()
new KeywordTableRAKERetriever(
__namedParameters
):KeywordTableRAKERetriever
Parameters
• __namedParameters
• __namedParameters.index: KeywordTableIndex
• __namedParameters.keywordExtractTemplate?: KeywordExtractPrompt
• __namedParameters.maxKeywordsPerQuery: number
= 10
• __namedParameters.numChunksPerQuery: number
= 10
• __namedParameters.queryKeywordExtractTemplate?: QueryKeywordExtractPrompt
Returns
Inherited from
BaseKeywordTableRetriever.constructor
Defined in
packages/llamaindex/src/indices/keyword/index.ts:66
Properties
docstore
protected
docstore:BaseDocumentStore
Inherited from
BaseKeywordTableRetriever.docstore
Defined in
packages/llamaindex/src/indices/keyword/index.ts:58
index
protected
index:KeywordTableIndex
Inherited from
BaseKeywordTableRetriever.index
Defined in
packages/llamaindex/src/indices/keyword/index.ts:56
indexStruct
protected
indexStruct:KeywordTable
Inherited from
BaseKeywordTableRetriever.indexStruct
Defined in
packages/llamaindex/src/indices/keyword/index.ts:57
keywordExtractTemplate
protected
keywordExtractTemplate:KeywordExtractPrompt
Inherited from
BaseKeywordTableRetriever.keywordExtractTemplate
Defined in
packages/llamaindex/src/indices/keyword/index.ts:63
llm
protected
llm:LLM
<object
,object
>
Inherited from
BaseKeywordTableRetriever.llm
Defined in
packages/llamaindex/src/indices/keyword/index.ts:59
maxKeywordsPerQuery
protected
maxKeywordsPerQuery:number
Inherited from
BaseKeywordTableRetriever.maxKeywordsPerQuery
Defined in
packages/llamaindex/src/indices/keyword/index.ts:61
numChunksPerQuery
protected
numChunksPerQuery:number
Inherited from
BaseKeywordTableRetriever.numChunksPerQuery
Defined in
packages/llamaindex/src/indices/keyword/index.ts:62
objectMap
objectMap:
Map
<string
,unknown
>
Inherited from
BaseKeywordTableRetriever.objectMap
Defined in
packages/core/retriever/dist/index.d.ts:20
queryKeywordExtractTemplate
protected
queryKeywordExtractTemplate:QueryKeywordExtractPrompt
Inherited from
BaseKeywordTableRetriever.queryKeywordExtractTemplate
Defined in
packages/llamaindex/src/indices/keyword/index.ts:64
Methods
_getPromptModules()
protected
_getPromptModules():object
Return a dictionary of sub-modules within the current module that also implement PromptMixin (so that their prompts can also be get/set).
Can be blank if no sub-modules.
Returns
object
Inherited from
BaseKeywordTableRetriever._getPromptModules
Defined in
packages/core/retriever/dist/index.d.ts:23
_getPrompts()
protected
_getPrompts():object
Returns
object
Inherited from
BaseKeywordTableRetriever._getPrompts
Defined in
packages/core/retriever/dist/index.d.ts:22
_handleRecursiveRetrieval()
_handleRecursiveRetrieval(
params
,nodes
):Promise
<NodeWithScore
<Metadata
>[]>
Parameters
• params: QueryBundle
• nodes: NodeWithScore
<Metadata
>[]
Returns
Promise
<NodeWithScore
<Metadata
>[]>
Inherited from
BaseKeywordTableRetriever._handleRecursiveRetrieval
Defined in
packages/core/retriever/dist/index.d.ts:27
_retrieve()
_retrieve(
query
):Promise
<NodeWithScore
<Metadata
>[]>
Parameters
• query: QueryBundle
Returns
Promise
<NodeWithScore
<Metadata
>[]>
Inherited from
BaseKeywordTableRetriever._retrieve
Defined in
packages/llamaindex/src/indices/keyword/index.ts:95
_retrieveFromObject()
_retrieveFromObject(
object
,queryBundle
,score
):NodeWithScore
<Metadata
>[]
Parameters
• object: unknown
• queryBundle: QueryBundle
• score: number
Returns
Inherited from
BaseKeywordTableRetriever._retrieveFromObject
Defined in
packages/core/retriever/dist/index.d.ts:28
_updatePrompts()
protected
_updatePrompts():void
Returns
void
Inherited from
BaseKeywordTableRetriever._updatePrompts
Defined in
packages/core/retriever/dist/index.d.ts:21
getKeywords()
getKeywords(
query
):Promise
<string
[]>
Parameters
• query: string
Returns
Promise
<string
[]>
Overrides
BaseKeywordTableRetriever.getKeywords
Defined in
packages/llamaindex/src/indices/keyword/index.ts:143
getPrompts()
getPrompts():
PromptsRecord
Returns
Inherited from
BaseKeywordTableRetriever.getPrompts
Defined in
packages/core/prompts/dist/index.d.ts:58
retrieve()
retrieve(
params
):Promise
<NodeWithScore
<Metadata
>[]>
Parameters
• params: QueryType
Returns
Promise
<NodeWithScore
<Metadata
>[]>
Inherited from
BaseKeywordTableRetriever.retrieve
Defined in
packages/core/retriever/dist/index.d.ts:25
updatePrompts()
updatePrompts(
prompts
):void
Parameters
• prompts: PromptsRecord
Returns
void
Inherited from
BaseKeywordTableRetriever.updatePrompts
Defined in
packages/core/prompts/dist/index.d.ts:59
validatePrompts()
validatePrompts(
promptsDict
,moduleDict
):void
Parameters
• promptsDict: PromptsRecord
• moduleDict: ModuleRecord
Returns
void
Inherited from
BaseKeywordTableRetriever.validatePrompts
Defined in
packages/core/prompts/dist/index.d.ts:57