Zum Hauptinhalt springen

Class: MongoDBAtlasVectorSearch

Implements

Constructors

new MongoDBAtlasVectorSearch()

new MongoDBAtlasVectorSearch(init): MongoDBAtlasVectorSearch

Parameters

init: Partial <MongoDBAtlasVectorSearch> & object

Returns

MongoDBAtlasVectorSearch

Source

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

Properties

collection

private collection: Collection<Document>

Source

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


embeddingKey

embeddingKey: string

Source

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


flatMetadata

flatMetadata: boolean = true

Source

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


idKey

idKey: string

Source

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


indexName

indexName: string

Source

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


insertOptions?

optional insertOptions: BulkWriteOptions

Source

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


metadataKey

metadataKey: string

Source

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


mongodbClient

mongodbClient: MongoClient

Source

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


storesText

storesText: boolean = true

Implementation of

VectorStore . storesText

Source

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


textKey

textKey: string

Source

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

Accessors

client

get client(): any

Returns

any

Source

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

Methods

add()

add(nodes): Promise<string[]>

Parameters

nodes: BaseNode <Metadata>[]

Returns

Promise<string[]>

Implementation of

VectorStore . add

Source

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


delete()

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

Parameters

refDocId: string

deleteOptions?: any

Returns

Promise<void>

Implementation of

VectorStore . delete

Source

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


query()

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

Parameters

query: VectorStoreQuery

options?: any

Returns

Promise <VectorStoreQueryResult>

Implementation of

VectorStore . query

Source

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