Skip to main content

Class: MilvusVectorStore

Extends

Implements

Constructors

new MilvusVectorStore()

new MilvusVectorStore(init?): MilvusVectorStore

Parameters

init?: Partial<object> & Partial <IEmbedModel> & object

Returns

MilvusVectorStore

Overrides

VectorStoreBase . constructor

Source

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

Properties

collectionInitialized

private collectionInitialized: boolean = false

Source

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


collectionName

private collectionName: string

Source

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


contentKey

private contentKey: string

Source

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


embedModel

embedModel: BaseEmbedding

Inherited from

VectorStoreBase . embedModel

Source

packages/core/src/storage/vectorStore/types.ts:86


embeddingKey

private embeddingKey: string

Source

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


flatMetadata

private flatMetadata: boolean = true

Source

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


idKey

private idKey: string

Source

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


isEmbeddingQuery?

optional isEmbeddingQuery: boolean

Implementation of

VectorStoreNoEmbedModel . isEmbeddingQuery

Source

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


metadataKey

private metadataKey: string

Source

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


milvusClient

private milvusClient: MilvusClient

Source

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


storesText

storesText: boolean = true

Implementation of

VectorStoreNoEmbedModel . storesText

Source

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

Methods

add()

add(nodes): Promise<string[]>

Parameters

nodes: BaseNode <Metadata>[]

Returns

Promise<string[]>

Implementation of

VectorStoreNoEmbedModel . add

Source

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


client()

client(): MilvusClient

Returns

MilvusClient

Implementation of

VectorStoreNoEmbedModel . client

Source

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


createCollection()

private createCollection(): Promise<void>

Returns

Promise<void>

Source

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


delete()

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

Parameters

refDocId: string

deleteOptions?: Omit<DeleteReq, "ids">

Returns

Promise<void>

Implementation of

VectorStoreNoEmbedModel . delete

Source

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


ensureCollection()

private ensureCollection(): Promise<void>

Returns

Promise<void>

Source

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


persist()

persist(): Promise<void>

Returns

Promise<void>

Source

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


query()

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

Parameters

query: VectorStoreQuery

_options?: any

Returns

Promise <VectorStoreQueryResult>

Implementation of

VectorStoreNoEmbedModel . query

Source

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