Nhảy tới nội dung

Class: MilvusVectorStore

Implements

Constructors

constructor

new MilvusVectorStore(init?): MilvusVectorStore

Parameters

NameType
init?Partial<{ milvusClient: MilvusClient }> & { collection?: string ; contentKey?: string ; embeddingKey?: string ; idKey?: string ; metadataKey?: string ; params?: { channelOptions?: ChannelOptions ; configOrAddress: string | ClientConfig ; password?: string ; ssl?: boolean ; username?: string } }

Returns

MilvusVectorStore

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:32

Properties

collectionInitialized

Private collectionInitialized: boolean = false

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:24


collectionName

Private collectionName: string

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:25


contentKey

Private contentKey: string

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:28


embeddingKey

Private embeddingKey: string

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:30


flatMetadata

Private flatMetadata: boolean = true

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:21


idKey

Private idKey: string

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:27


isEmbeddingQuery

Optional isEmbeddingQuery: boolean

Implementation of

VectorStore.isEmbeddingQuery

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:20


metadataKey

Private metadataKey: string

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:29


milvusClient

Private milvusClient: MilvusClient

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:23


storesText

storesText: boolean = true

Implementation of

VectorStore.storesText

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:19

Methods

add

add(nodes): Promise<string[]>

Parameters

NameType
nodesBaseNode<Metadata>[]

Returns

Promise<string[]>

Implementation of

VectorStore.add

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:131


client

client(): MilvusClient

Returns

MilvusClient

Implementation of

VectorStore.client

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:76


createCollection

createCollection(): Promise<void>

Returns

Promise<void>

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:80


delete

delete(refDocId, deleteOptions?): Promise<void>

Parameters

NameType
refDocIdstring
deleteOptions?Omit<DeleteReq, "ids">

Returns

Promise<void>

Implementation of

VectorStore.delete

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:166


ensureCollection

ensureCollection(): Promise<void>

Returns

Promise<void>

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:112


persist

persist(): Promise<void>

Returns

Promise<void>

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:211


query

query(query, _options?): Promise<VectorStoreQueryResult>

Parameters

NameType
queryVectorStoreQuery
_options?any

Returns

Promise<VectorStoreQueryResult>

Implementation of

VectorStore.query

Defined in

packages/core/src/storage/vectorStore/MilvusVectorStore.ts:179