Class: MongoDBAtlasVectorSearch
Implements
Constructors
constructor
• new MongoDBAtlasVectorSearch(init
)
Parameters
Name | Type |
---|---|
init | Partial <MongoDBAtlasVectorSearch > & { collectionName : string ; dbName : string } |
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:36
Properties
collection
• Private
collection: Collection
<Document
>
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:34
embeddingKey
• embeddingKey: string
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:29
flatMetadata
• flatMetadata: boolean
= true
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:25
idKey
• idKey: string
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:30
indexName
• indexName: string
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:28
insertOptions
• Optional
insertOptions: BulkWriteOptions
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:33
metadataKey
• metadataKey: string
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:32
mongodbClient
• mongodbClient: MongoClient
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:27
storesText
• storesText: boolean
= true
Implementation of
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:24
textKey
• textKey: string
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:31
Accessors
client
• get
client(): any
Returns
any
Implementation of
VectorStore.client
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:103
Methods
add
▸ add(nodes
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
nodes | BaseNode <Metadata >[] |
Returns
Promise
<string
[]>
Implementation of
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:65
delete
▸ delete(refDocId
, deleteOptions?
): Promise
<void
>
Parameters
Name | Type |
---|---|
refDocId | string |
deleteOptions? | any |
Returns
Promise
<void
>
Implementation of
Defined in
packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:94