@vectorstores/mongodb 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -71,7 +71,7 @@ class MongoKVStore extends core.BaseKVStore {
71
71
  }
72
72
  }
73
73
 
74
- var version = "0.1.6";
74
+ var version = "0.1.7";
75
75
  var pkg = {
76
76
  version: version};
77
77
 
@@ -123,7 +123,7 @@ function toMongoDBFilter(filters) {
123
123
  * This store uses the $vectorSearch aggregation stage to perform vector similarity search.
124
124
  */ class MongoDBAtlasVectorSearch extends core.BaseVectorStore {
125
125
  constructor(init){
126
- super(init), this.storesText = true, this.flatMetadata = true;
126
+ super(), this.storesText = true, this.flatMetadata = true;
127
127
  if (init.mongodbClient) {
128
128
  this.mongodbClient = init.mongodbClient;
129
129
  } else {
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseKVStore, StoredValue, BaseVectorStore, VectorStoreQuery, BaseEmbedding, VectorStoreBaseParams, BaseNode, VectorStoreQueryResult, BaseReader, Document } from '@vectorstores/core';
1
+ import { BaseKVStore, StoredValue, BaseVectorStore, VectorStoreQuery, BaseNode, VectorStoreQueryResult, BaseReader, Document } from '@vectorstores/core';
2
2
  import { MongoClient, BulkWriteOptions, Collection, Document as Document$1, Filter } from 'mongodb';
3
3
 
4
4
  interface MongoKVStoreConfig {
@@ -83,11 +83,10 @@ declare class MongoDBAtlasVectorSearch extends BaseVectorStore {
83
83
  constructor(init: Partial<MongoDBAtlasVectorSearch> & {
84
84
  dbName: string;
85
85
  collectionName: string;
86
- embedModel?: BaseEmbedding;
87
86
  autoCreateIndex?: boolean;
88
87
  indexedMetadataFields?: string[];
89
88
  embeddingDefinition?: Record<string, unknown>;
90
- } & VectorStoreBaseParams);
89
+ });
91
90
  ensureCollection(): Promise<Collection>;
92
91
  /**
93
92
  * Add nodes to the vector store.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseKVStore, StoredValue, BaseVectorStore, VectorStoreQuery, BaseEmbedding, VectorStoreBaseParams, BaseNode, VectorStoreQueryResult, BaseReader, Document } from '@vectorstores/core';
1
+ import { BaseKVStore, StoredValue, BaseVectorStore, VectorStoreQuery, BaseNode, VectorStoreQueryResult, BaseReader, Document } from '@vectorstores/core';
2
2
  import { MongoClient, BulkWriteOptions, Collection, Document as Document$1, Filter } from 'mongodb';
3
3
 
4
4
  interface MongoKVStoreConfig {
@@ -83,11 +83,10 @@ declare class MongoDBAtlasVectorSearch extends BaseVectorStore {
83
83
  constructor(init: Partial<MongoDBAtlasVectorSearch> & {
84
84
  dbName: string;
85
85
  collectionName: string;
86
- embedModel?: BaseEmbedding;
87
86
  autoCreateIndex?: boolean;
88
87
  indexedMetadataFields?: string[];
89
88
  embeddingDefinition?: Record<string, unknown>;
90
- } & VectorStoreBaseParams);
89
+ });
91
90
  ensureCollection(): Promise<Collection>;
92
91
  /**
93
92
  * Add nodes to the vector store.
@@ -1,4 +1,4 @@
1
- import { BaseKVStore, StoredValue, BaseVectorStore, VectorStoreQuery, BaseEmbedding, VectorStoreBaseParams, BaseNode, VectorStoreQueryResult, BaseReader, Document } from '@vectorstores/core';
1
+ import { BaseKVStore, StoredValue, BaseVectorStore, VectorStoreQuery, BaseNode, VectorStoreQueryResult, BaseReader, Document } from '@vectorstores/core';
2
2
  import { MongoClient, BulkWriteOptions, Collection, Document as Document$1, Filter } from 'mongodb';
3
3
 
4
4
  interface MongoKVStoreConfig {
@@ -83,11 +83,10 @@ declare class MongoDBAtlasVectorSearch extends BaseVectorStore {
83
83
  constructor(init: Partial<MongoDBAtlasVectorSearch> & {
84
84
  dbName: string;
85
85
  collectionName: string;
86
- embedModel?: BaseEmbedding;
87
86
  autoCreateIndex?: boolean;
88
87
  indexedMetadataFields?: string[];
89
88
  embeddingDefinition?: Record<string, unknown>;
90
- } & VectorStoreBaseParams);
89
+ });
91
90
  ensureCollection(): Promise<Collection>;
92
91
  /**
93
92
  * Add nodes to the vector store.
@@ -69,7 +69,7 @@ class MongoKVStore extends BaseKVStore {
69
69
  }
70
70
  }
71
71
 
72
- var version = "0.1.6";
72
+ var version = "0.1.7";
73
73
  var pkg = {
74
74
  version: version};
75
75
 
@@ -121,7 +121,7 @@ function toMongoDBFilter(filters) {
121
121
  * This store uses the $vectorSearch aggregation stage to perform vector similarity search.
122
122
  */ class MongoDBAtlasVectorSearch extends BaseVectorStore {
123
123
  constructor(init){
124
- super(init), this.storesText = true, this.flatMetadata = true;
124
+ super(), this.storesText = true, this.flatMetadata = true;
125
125
  if (init.mongodbClient) {
126
126
  this.mongodbClient = init.mongodbClient;
127
127
  } else {
package/dist/index.js CHANGED
@@ -69,7 +69,7 @@ class MongoKVStore extends BaseKVStore {
69
69
  }
70
70
  }
71
71
 
72
- var version = "0.1.6";
72
+ var version = "0.1.7";
73
73
  var pkg = {
74
74
  version: version};
75
75
 
@@ -121,7 +121,7 @@ function toMongoDBFilter(filters) {
121
121
  * This store uses the $vectorSearch aggregation stage to perform vector similarity search.
122
122
  */ class MongoDBAtlasVectorSearch extends BaseVectorStore {
123
123
  constructor(init){
124
- super(init), this.storesText = true, this.flatMetadata = true;
124
+ super(), this.storesText = true, this.flatMetadata = true;
125
125
  if (init.mongodbClient) {
126
126
  this.mongodbClient = init.mongodbClient;
127
127
  } else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vectorstores/mongodb",
3
3
  "description": "MongoDB Storage for vectorstores",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -36,11 +36,11 @@
36
36
  "devDependencies": {
37
37
  "vitest": "2.1.0",
38
38
  "mongodb-memory-server": "^10.1.4",
39
- "@vectorstores/core": "0.1.6",
39
+ "@vectorstores/core": "0.1.7",
40
40
  "@vectorstores/env": "0.1.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@vectorstores/core": "0.1.6",
43
+ "@vectorstores/core": "0.1.7",
44
44
  "@vectorstores/env": "0.1.0"
45
45
  },
46
46
  "dependencies": {