Class: MilvusVectorStore
Implements
Constructors
constructor
• new MilvusVectorStore(init?
): MilvusVectorStore
Parameters
Name | Type |
---|---|
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
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
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
Defined in
packages/core/src/storage/vectorStore/MilvusVectorStore.ts:19
Methods
add
▸ add(nodes
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
nodes | BaseNode <Metadata >[] |
Returns
Promise
<string
[]>
Implementation of
Defined in
packages/core/src/storage/vectorStore/MilvusVectorStore.ts:131
client
▸ client(): MilvusClient
Returns
MilvusClient
Implementation of
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
Name | Type |
---|---|
refDocId | string |
deleteOptions? | Omit <DeleteReq , "ids" > |