Aller au contenu principal

Class: MilvusVectorStore

Implements

Constructors

new MilvusVectorStore()

new MilvusVectorStore(init?): MilvusVectorStore

Parameters

init?: Partial<object> & object

Returns

MilvusVectorStore

Source

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

Properties

collectionInitialized

private collectionInitialized: boolean = false

Source

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


collectionName

private collectionName: string

Source

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


contentKey

private contentKey: string

Source

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


embeddingKey

private embeddingKey: string

Source

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


flatMetadata

private flatMetadata: boolean = true

Source

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


idKey

private idKey: string

Source

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


isEmbeddingQuery?

optional isEmbeddingQuery: boolean

Implementation of

VectorStore . isEmbeddingQuery

Source

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


metadataKey

private metadataKey: string

Source

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


milvusClient

private milvusClient: MilvusClient

Source

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


storesText

storesText: boolean = true

Implementation of

VectorStore . storesText

Source

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

Methods

add()

add(nodes): Promise<string[]>

Parameters

nodes: BaseNode <Metadata>[]

Returns

Promise<string[]>

Implementation of

VectorStore . add

Source

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


client()

client(): MilvusClient

Returns

MilvusClient

Implementation of

VectorStore . client

Source

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


createCollection()

private createCollection(): Promise<void>

Returns

Promise<void>

Source

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


delete()

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

Parameters

refDocId: string

deleteOptions?: Omit<DeleteReq, "ids">

Returns

Promise<void>

Implementation of

VectorStore . delete

Source

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


ensureCollection()

private ensureCollection(): Promise<void>

Returns

Promise<void>

Source

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


persist()

persist(): Promise<void>

Returns

Promise<void>

Source

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


query()

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

Parameters

query: VectorStoreQuery

_options?: any

Returns

Promise <VectorStoreQueryResult>

Implementation of

VectorStore . query

Source

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