Skip to content

BaseIndex

Defined in: packages/core/src/indices/BaseIndex.ts:16

Indexes are the data structure that we store our nodes and embeddings in so they can be retrieved for our queries.

new BaseIndex(init): BaseIndex

Defined in: packages/core/src/indices/BaseIndex.ts:19

BaseIndexInit

BaseIndex

vectorStores: VectorStoreByType

Defined in: packages/core/src/indices/BaseIndex.ts:17

abstract asRetriever(options?): BaseRetriever

Defined in: packages/core/src/indices/BaseIndex.ts:28

Create a new retriever from the index.

any

BaseRetriever


insert(document): Promise<void>

Defined in: packages/core/src/indices/BaseIndex.ts:34

Insert a document into the index.

Document

Promise<void>


abstract insertNodes(nodes): Promise<void>

Defined in: packages/core/src/indices/BaseIndex.ts:49

BaseNode<Metadata>[]

Promise<void>


abstract deleteRefDoc(refDocId): Promise<void>

Defined in: packages/core/src/indices/BaseIndex.ts:50

string

Promise<void>


retriever(options?): BaseRetriever

Defined in: packages/core/src/indices/BaseIndex.ts:57

Alias for asRetriever

any

BaseRetriever