跳转到内容

SummaryIndex

定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:63

SummaryIndex 按顺序维护节点,用于摘要生成。

new SummaryIndex(init): SummaryIndex

定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:64

BaseIndexInit<IndexList>

SummaryIndex

BaseIndex.constructor

存储上下文: StorageContext

定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:52

BaseIndex.storageContext


文档存储: BaseDocumentStore

定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:53

BaseIndex.docStore


optional 索引存储: BaseIndexStore

定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:54

BaseIndex.indexStore


索引结构: IndexList

定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:55

BaseIndex.indexStruct

asQueryTool(params): QueryEngineTool

定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:94

通过调用 asQueryEngine 返回一个查询工具。 可以传递 options 或 retriever 其中之一,但不能同时传递两者。 如果提供了 options,它们将被传递用于生成检索器。

QueryToolParams

QueryEngineTool

BaseIndex.asQueryTool


insert(document): Promise<void>

定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:110

将文档插入索引中。

Document

Promise<void>

BaseIndex.insert


retriever(options?): BaseRetriever

定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:127

asRetriever 的别名

any

BaseRetriever

BaseIndex.retriever


queryEngine(options?): BaseQueryEngine

定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:135

asQueryEngine 的别名

您可以提供自定义的检索器和响应合成器

BaseRetriever

BaseSynthesizer

BaseQueryEngine

BaseIndex.queryEngine


queryTool(params): QueryEngineTool

定义于:.build/typescript/packages/llamaindex/src/indices/BaseIndex.ts:147

asQueryTool 的别名 可以传入 options 或 retriever 中的任意一个,但不能同时传入。 如果提供了 options,它们将被传递给生成检索器。

QueryToolParams

QueryEngineTool

BaseIndex.queryTool


static init(options): Promise<SummaryIndex>

定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:68

SummaryIndexOptions

Promise<SummaryIndex>


static fromDocuments(documents, args): Promise<SummaryIndex>

定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:133

Document<Metadata>[]

StorageContext

Promise<SummaryIndex>


asRetriever(options?): BaseRetriever

定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:157

从索引创建一个新的检索器。

SummaryRetrieverMode

BaseRetriever

BaseIndex.asRetriever


asQueryEngine(options?): RetrieverQueryEngine

定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:170

从索引创建新的查询引擎。如果未提供检索器和响应合成器,它也会创建它们。

您可以提供自定义的检索器和响应合成器

BaseRetriever

BaseSynthesizer

unknown

BaseNodePostprocessor[]

RetrieverQueryEngine

BaseIndex.asQueryEngine


asChatEngine(options?): BaseChatEngine

定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:193

从索引创建一个新的聊天引擎。

SummaryIndexChatEngineOptions

BaseChatEngine

BaseIndex.asChatEngine


static buildIndexFromNodes(nodes, docStore, indexStruct?): Promise<IndexList>

定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:203

BaseNode<Metadata>[]

BaseDocumentStore

IndexList

Promise<IndexList>


insertNodes(nodes): Promise<void>

定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:218

BaseNode<Metadata>[]

Promise<void>

BaseIndex.insertNodes


deleteRefDoc(refDocId, deleteFromDocStore?): Promise<void>

定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:224

string

从文档存储中删除?
Section titled “deleteFromDocStore?”

boolean

Promise<void>

BaseIndex.deleteRefDoc


deleteNodes(nodeIds, deleteFromDocStore): Promise<void>

定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:243

string[]

boolean

Promise<void>


getRefDocInfo(): Promise<Record<string, RefDocInfo>>

定义于:.build/typescript/packages/llamaindex/src/indices/summary/index.ts:257

Promise<Record<string, RefDocInfo>>