SummaryIndex
定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:63
SummaryIndex 按顺序维护节点,用于摘要生成。
BaseIndex<IndexList>
new SummaryIndex(
init):SummaryIndex
定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:64
BaseIndexInit<IndexList>
SummaryIndex
storageContext
Section titled “storageContext”存储上下文:
StorageContext
定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:52
docStore
Section titled “docStore”文档存储:
BaseDocumentStore
定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:53
optional索引存储:BaseIndexStore
定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:54
indexStruct
Section titled “indexStruct”索引结构:
IndexList
定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:55
asQueryTool()
Section titled “asQueryTool()”asQueryTool(
params):QueryEngineTool
定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:94
通过调用 asQueryEngine 返回一个查询工具。 可以传递 options 或 retriever 其中之一,但不能同时传递两者。 如果提供了 options,它们将被传递用于生成检索器。
insert()
Section titled “insert()”insert(
document):Promise<void>
定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:110
将文档插入索引中。
Document
Promise<void>
retriever()
Section titled “retriever()”retriever(
options?):BaseRetriever
定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:127
asRetriever 的别名
any
BaseRetriever
queryEngine()
Section titled “queryEngine()”queryEngine(
options?):BaseQueryEngine
定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:135
asQueryEngine 的别名
您可以提供自定义的检索器和响应合成器
BaseRetriever
BaseSynthesizer
BaseQueryEngine
queryTool()
Section titled “queryTool()”queryTool(
params):QueryEngineTool
定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:147
asQueryTool 的别名 可以传入 options 或 retriever 中的任意一个,但不能同时传入。 如果提供了 options,它们将被传递给生成检索器。
init()
Section titled “init()”
staticinit(options):Promise<SummaryIndex>
定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:68
Promise<SummaryIndex>
fromDocuments()
Section titled “fromDocuments()”
staticfromDocuments(documents,args):Promise<SummaryIndex>
定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:133
Document<Metadata>[]
Promise<SummaryIndex>
asRetriever()
Section titled “asRetriever()”asRetriever(
options?):BaseRetriever
定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:157
从索引创建一个新的检索器。
BaseRetriever
asQueryEngine()
Section titled “asQueryEngine()”asQueryEngine(
options?):RetrieverQueryEngine
定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:170
从索引创建新的查询引擎。如果未提供检索器和响应合成器,它也会创建它们。
您可以提供自定义的检索器和响应合成器
BaseRetriever
BaseSynthesizer
unknown
BaseNodePostprocessor[]
RetrieverQueryEngine
asChatEngine()
Section titled “asChatEngine()”asChatEngine(
options?):BaseChatEngine
定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:193
从索引创建一个新的聊天引擎。
BaseChatEngine
buildIndexFromNodes()
Section titled “buildIndexFromNodes()”
staticbuildIndexFromNodes(nodes,docStore,indexStruct?):Promise<IndexList>
定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:203
BaseNode<Metadata>[]
docStore
Section titled “docStore”BaseDocumentStore
indexStruct?
Section titled “indexStruct?”IndexList
Promise<IndexList>
insertNodes()
Section titled “insertNodes()”insertNodes(
nodes):Promise<void>
定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:218
BaseNode<Metadata>[]
Promise<void>
deleteRefDoc()
Section titled “deleteRefDoc()”deleteRefDoc(
refDocId,deleteFromDocStore?):Promise<void>
定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:224
refDocId
Section titled “refDocId”string
从文档存储中删除?
Section titled “deleteFromDocStore?”boolean
Promise<void>
deleteNodes()
Section titled “deleteNodes()”deleteNodes(
nodeIds,deleteFromDocStore):Promise<void>
定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:243
nodeIds
Section titled “nodeIds”string[]
deleteFromDocStore
Section titled “deleteFromDocStore”boolean
Promise<void>
getRefDocInfo()
Section titled “getRefDocInfo()”getRefDocInfo():
Promise<Record<string,RefDocInfo>>
定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:257
Promise<Record<string, RefDocInfo>>