Zum Hauptinhalt springen

Class: MongoDBAtlasVectorSearch

Implements

Constructors

constructor

new MongoDBAtlasVectorSearch(init): MongoDBAtlasVectorSearch

Parameters

NameType
initPartial<MongoDBAtlasVectorSearch> & { collectionName: string ; dbName: string }

Returns

MongoDBAtlasVectorSearch

Defined in

packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:39

Properties

collection

Private collection: Collection<Document>

Defined in

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


embeddingKey

embeddingKey: string

Defined in

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


flatMetadata

flatMetadata: boolean = true

Defined in

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


idKey

idKey: string

Defined in

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


indexName

indexName: string

Defined in

packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:31


insertOptions

Optional insertOptions: BulkWriteOptions

Defined in

packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:36


metadataKey

metadataKey: string

Defined in

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


mongodbClient

mongodbClient: MongoClient

Defined in

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


storesText

storesText: boolean = true

Implementation of

VectorStore.storesText

Defined in

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


textKey

textKey: string

Defined in

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

Accessors

client

get client(): any

Returns

any

Implementation of

VectorStore.client

Defined in

packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:106

Methods

add

add(nodes): Promise<string[]>

Parameters

NameType
nodesBaseNode<Metadata>[]

Returns

Promise<string[]>

Implementation of

VectorStore.add

Defined in

packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:68


delete

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

Parameters

NameType
refDocIdstring
deleteOptions?any

Returns

Promise<void>

Implementation of

VectorStore.delete

Defined in

packages/core/src/storage/vectorStore/MongoDBAtlasVectorStore.ts:97


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/MongoDBAtlasVectorStore.ts:110