Interface: MongoDBVectorStoreOptions
Defined in: batteries/vector/mongodb/index.ts:42
Shared base options every adapter extends with its own connection block.
Extends
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
connection | { collectionPrefix?: string; database?: string; url: string; } | - | - | batteries/vector/mongodb/index.ts:43 |
connection.collectionPrefix? | string | When set, the physical MongoDB collection becomes ${collectionPrefix}${collection}. The logical collection the builder/base see is unchanged. Lets callers (and the test suite) isolate otherwise identically-named collections — useful because the Atlas vectorSearch index builds asynchronously, so a fresh collection per use avoids drop+rebuild churn. | - | batteries/vector/mongodb/index.ts:52 |
connection.database? | string | - | - | batteries/vector/mongodb/index.ts:45 |
connection.url | string | - | - | batteries/vector/mongodb/index.ts:44 |
consistency? | VectorConsistency | Store-wide read-after-write guarantee for writes. Overrides the adapter's declared VectorStoreCapabilities.consistency default; a per-operation .consistency() on the builder overrides this in turn (precedence: per-op > store option > adapter default). Ignored by strongly-consistent adapters. See VectorConsistency. | BaseVectorStoreOptions.consistency | batteries/vector/types.ts:106 |
defaultCollection? | string | - | BaseVectorStoreOptions.defaultCollection | batteries/vector/types.ts:99 |
dimensions? | number | - | BaseVectorStoreOptions.dimensions | batteries/vector/types.ts:98 |
encoder? | VectorEncoderFn | - | BaseVectorStoreOptions.encoder | batteries/vector/types.ts:97 |
metric? | DistanceMetric | - | BaseVectorStoreOptions.metric | batteries/vector/types.ts:96 |