@vectorstores/azure 0.1.5 → 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
@@ -396,7 +396,7 @@ console.log({ response });
396
396
  #indexMapping;
397
397
  #hiddenFiledKeys;
398
398
  constructor(options){
399
- super(options), this.storesText = true, this.#metadataToIndexFieldMap = new Map(), this.flatMetadata = true;
399
+ super(), this.storesText = true, this.#metadataToIndexFieldMap = new Map(), this.flatMetadata = true;
400
400
  // set default values
401
401
  options.vectorAlgorithmType ||= searchDocuments.KnownVectorSearchAlgorithmKind.ExhaustiveKnn;
402
402
  options.languageAnalyzer ||= searchDocuments.KnownAnalyzerNames.EnLucene;
@@ -1107,13 +1107,14 @@ console.log({ response });
1107
1107
  // Define base AzureQueryResultSearch object based on query mode
1108
1108
  let azureQueryResultSearch = new AzureQueryResultSearchDefault(query, this.#fieldMapping, odataFilter, this._searchClient);
1109
1109
  switch(query.mode){
1110
- case core.VectorStoreQueryMode.SPARSE:
1110
+ case "sparse":
1111
+ case "bm25":
1111
1112
  azureQueryResultSearch = new AzureQueryResultSearchSparse(query, this.#fieldMapping, odataFilter, this._searchClient);
1112
1113
  break;
1113
- case core.VectorStoreQueryMode.HYBRID:
1114
+ case "hybrid":
1114
1115
  azureQueryResultSearch = new AzureQueryResultSearchHybrid(query, this.#fieldMapping, odataFilter, this._searchClient);
1115
1116
  break;
1116
- case core.VectorStoreQueryMode.SEMANTIC_HYBRID:
1117
+ case "semantic_hybrid":
1117
1118
  azureQueryResultSearch = new AzureQueryResultSearchSemanticHybrid(query, this.#fieldMapping, odataFilter, this._searchClient);
1118
1119
  break;
1119
1120
  }
@@ -1132,7 +1133,7 @@ console.log({ response });
1132
1133
  }
1133
1134
  }
1134
1135
 
1135
- var version = "0.1.5";
1136
+ var version = "0.1.7";
1136
1137
  var pkg = {
1137
1138
  version: version};
1138
1139
 
@@ -1154,7 +1155,7 @@ var pkg = {
1154
1155
  * automatically using the `createIndex` method.
1155
1156
  */ class AzureCosmosDBMongoDBVectorStore extends core.BaseVectorStore {
1156
1157
  constructor(init){
1157
- super(init), this.storesText = true, this.flatMetadata = true;
1158
+ super(), this.storesText = true, this.flatMetadata = true;
1158
1159
  if (init.mongodbClient) {
1159
1160
  this.mongodbClient = init.mongodbClient;
1160
1161
  } else {
@@ -1427,7 +1428,7 @@ class AzureCosmosDBNoSqlVectorStore extends core.BaseVectorStore {
1427
1428
  return this.cosmosClient;
1428
1429
  }
1429
1430
  constructor(dbConfig){
1430
- super(dbConfig), this.storesText = true, this.flatMetadata = true;
1431
+ super(), this.storesText = true, this.flatMetadata = true;
1431
1432
  if (!dbConfig.client) {
1432
1433
  throw new Error("CosmosClient is required for AzureCosmosDBNoSQLVectorStore initialization");
1433
1434
  }
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { SqlQuerySpec, CosmosClient, DatabaseRequest, ContainerRequest, VectorEmbeddingPolicy, IndexingPolicy } from '@azure/cosmos';
2
- import { BaseReader, Document, BaseNode, BaseVectorStore, VectorStoreBaseParams, MetadataFilters, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
2
+ import { BaseReader, Document, BaseNode, BaseVectorStore, MetadataFilters, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
3
3
  export * from './storage.cjs';
4
4
  import { DefaultAzureCredential, ManagedIdentityCredential, TokenCredential } from '@azure/identity';
5
5
  import { AzureKeyCredential, SearchIndexClient, SearchClient, LexicalAnalyzerName, KnownVectorSearchCompressionKind, KnownVectorSearchAlgorithmKind, VectorizedQuery } from '@azure/search-documents';
@@ -267,7 +267,7 @@ declare class AzureAISearchVectorStore<T extends R> extends BaseVectorStore {
267
267
  _searchClient: SearchClient<T> | undefined;
268
268
  _indexClient: SearchIndexClient | undefined;
269
269
  flatMetadata: boolean;
270
- constructor(options: AzureAISearchOptions<T> & VectorStoreBaseParams);
270
+ constructor(options: AzureAISearchOptions<T>);
271
271
  createSearchIndexClient(options: AzureAISearchOptions<T>): void;
272
272
  createSearchClient(options: AzureAISearchOptions<T>): void;
273
273
  /**
@@ -383,7 +383,7 @@ declare class AzureCosmosDBMongoDBVectorStore extends BaseVectorStore {
383
383
  dbName: string;
384
384
  collectionName: string;
385
385
  indexedMetadataFields?: string[];
386
- } & VectorStoreBaseParams);
386
+ });
387
387
  client(): MongoClient;
388
388
  ensureCollection(): Promise<Collection>;
389
389
  add(nodes: BaseNode[]): Promise<string[]>;
@@ -502,7 +502,7 @@ declare class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
502
502
  embeddingKey: string;
503
503
  private initialize;
504
504
  client(): unknown;
505
- constructor(dbConfig: AzureCosmosDBNoSQLConfig & VectorStoreBaseParams);
505
+ constructor(dbConfig: AzureCosmosDBNoSQLConfig);
506
506
  /**
507
507
  * Static method for creating an instance using a connection string.
508
508
  * If no connection string is provided, it will attempt to use the env variable `AZURE_COSMOSDB_NOSQL_CONNECTION_STRING` as connection string.
@@ -510,7 +510,7 @@ declare class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
510
510
  */
511
511
  static fromConnectionString(config?: {
512
512
  connectionString?: string;
513
- } & AzureCosmosDBNoSQLConfig & VectorStoreBaseParams): AzureCosmosDBNoSqlVectorStore;
513
+ } & AzureCosmosDBNoSQLConfig): AzureCosmosDBNoSqlVectorStore;
514
514
  /**
515
515
  * Static method for creating an instance using a account endpoint and key.
516
516
  * If no endpoint and key is provided, it will attempt to use the env variable `AZURE_COSMOSDB_NOSQL_ACCOUNT_ENDPOINT` as enpoint and `AZURE_COSMOSDB_NOSQL_ACCOUNT_KEY` as key.
@@ -519,7 +519,7 @@ declare class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
519
519
  static fromAccountAndKey(config?: {
520
520
  endpoint?: string;
521
521
  key?: string;
522
- } & AzureCosmosDBNoSQLConfig & VectorStoreBaseParams): AzureCosmosDBNoSqlVectorStore;
522
+ } & AzureCosmosDBNoSQLConfig): AzureCosmosDBNoSqlVectorStore;
523
523
  /**
524
524
  * Static method for creating an instance using account endpoint and managed identity.
525
525
  * If no endpoint and credentials are provided, it will attempt to use the env variable `AZURE_COSMOSDB_NOSQL_ACCOUNT_ENDPOINT` as endpoint and use DefaultAzureCredential() as credentials.
@@ -528,7 +528,7 @@ declare class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
528
528
  static fromUriAndManagedIdentity(config?: {
529
529
  endpoint?: string;
530
530
  credential?: TokenCredential;
531
- } & AzureCosmosDBNoSQLConfig & VectorStoreBaseParams): AzureCosmosDBNoSqlVectorStore;
531
+ } & AzureCosmosDBNoSQLConfig): AzureCosmosDBNoSqlVectorStore;
532
532
  /**
533
533
  * Adds document to the CosmosDB container.
534
534
  *
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { SqlQuerySpec, CosmosClient, DatabaseRequest, ContainerRequest, VectorEmbeddingPolicy, IndexingPolicy } from '@azure/cosmos';
2
- import { BaseReader, Document, BaseNode, BaseVectorStore, VectorStoreBaseParams, MetadataFilters, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
2
+ import { BaseReader, Document, BaseNode, BaseVectorStore, MetadataFilters, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
3
3
  export * from './storage.js';
4
4
  import { DefaultAzureCredential, ManagedIdentityCredential, TokenCredential } from '@azure/identity';
5
5
  import { AzureKeyCredential, SearchIndexClient, SearchClient, LexicalAnalyzerName, KnownVectorSearchCompressionKind, KnownVectorSearchAlgorithmKind, VectorizedQuery } from '@azure/search-documents';
@@ -267,7 +267,7 @@ declare class AzureAISearchVectorStore<T extends R> extends BaseVectorStore {
267
267
  _searchClient: SearchClient<T> | undefined;
268
268
  _indexClient: SearchIndexClient | undefined;
269
269
  flatMetadata: boolean;
270
- constructor(options: AzureAISearchOptions<T> & VectorStoreBaseParams);
270
+ constructor(options: AzureAISearchOptions<T>);
271
271
  createSearchIndexClient(options: AzureAISearchOptions<T>): void;
272
272
  createSearchClient(options: AzureAISearchOptions<T>): void;
273
273
  /**
@@ -383,7 +383,7 @@ declare class AzureCosmosDBMongoDBVectorStore extends BaseVectorStore {
383
383
  dbName: string;
384
384
  collectionName: string;
385
385
  indexedMetadataFields?: string[];
386
- } & VectorStoreBaseParams);
386
+ });
387
387
  client(): MongoClient;
388
388
  ensureCollection(): Promise<Collection>;
389
389
  add(nodes: BaseNode[]): Promise<string[]>;
@@ -502,7 +502,7 @@ declare class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
502
502
  embeddingKey: string;
503
503
  private initialize;
504
504
  client(): unknown;
505
- constructor(dbConfig: AzureCosmosDBNoSQLConfig & VectorStoreBaseParams);
505
+ constructor(dbConfig: AzureCosmosDBNoSQLConfig);
506
506
  /**
507
507
  * Static method for creating an instance using a connection string.
508
508
  * If no connection string is provided, it will attempt to use the env variable `AZURE_COSMOSDB_NOSQL_CONNECTION_STRING` as connection string.
@@ -510,7 +510,7 @@ declare class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
510
510
  */
511
511
  static fromConnectionString(config?: {
512
512
  connectionString?: string;
513
- } & AzureCosmosDBNoSQLConfig & VectorStoreBaseParams): AzureCosmosDBNoSqlVectorStore;
513
+ } & AzureCosmosDBNoSQLConfig): AzureCosmosDBNoSqlVectorStore;
514
514
  /**
515
515
  * Static method for creating an instance using a account endpoint and key.
516
516
  * If no endpoint and key is provided, it will attempt to use the env variable `AZURE_COSMOSDB_NOSQL_ACCOUNT_ENDPOINT` as enpoint and `AZURE_COSMOSDB_NOSQL_ACCOUNT_KEY` as key.
@@ -519,7 +519,7 @@ declare class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
519
519
  static fromAccountAndKey(config?: {
520
520
  endpoint?: string;
521
521
  key?: string;
522
- } & AzureCosmosDBNoSQLConfig & VectorStoreBaseParams): AzureCosmosDBNoSqlVectorStore;
522
+ } & AzureCosmosDBNoSQLConfig): AzureCosmosDBNoSqlVectorStore;
523
523
  /**
524
524
  * Static method for creating an instance using account endpoint and managed identity.
525
525
  * If no endpoint and credentials are provided, it will attempt to use the env variable `AZURE_COSMOSDB_NOSQL_ACCOUNT_ENDPOINT` as endpoint and use DefaultAzureCredential() as credentials.
@@ -528,7 +528,7 @@ declare class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
528
528
  static fromUriAndManagedIdentity(config?: {
529
529
  endpoint?: string;
530
530
  credential?: TokenCredential;
531
- } & AzureCosmosDBNoSQLConfig & VectorStoreBaseParams): AzureCosmosDBNoSqlVectorStore;
531
+ } & AzureCosmosDBNoSQLConfig): AzureCosmosDBNoSqlVectorStore;
532
532
  /**
533
533
  * Adds document to the CosmosDB container.
534
534
  *
@@ -1,5 +1,5 @@
1
1
  import { SqlQuerySpec, CosmosClient, DatabaseRequest, ContainerRequest, VectorEmbeddingPolicy, IndexingPolicy } from '@azure/cosmos';
2
- import { BaseReader, Document, BaseNode, BaseVectorStore, VectorStoreBaseParams, MetadataFilters, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
2
+ import { BaseReader, Document, BaseNode, BaseVectorStore, MetadataFilters, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
3
3
  export * from './storage.js';
4
4
  import { DefaultAzureCredential, ManagedIdentityCredential, TokenCredential } from '@azure/identity';
5
5
  import { AzureKeyCredential, SearchIndexClient, SearchClient, LexicalAnalyzerName, KnownVectorSearchCompressionKind, KnownVectorSearchAlgorithmKind, VectorizedQuery } from '@azure/search-documents';
@@ -267,7 +267,7 @@ declare class AzureAISearchVectorStore<T extends R> extends BaseVectorStore {
267
267
  _searchClient: SearchClient<T> | undefined;
268
268
  _indexClient: SearchIndexClient | undefined;
269
269
  flatMetadata: boolean;
270
- constructor(options: AzureAISearchOptions<T> & VectorStoreBaseParams);
270
+ constructor(options: AzureAISearchOptions<T>);
271
271
  createSearchIndexClient(options: AzureAISearchOptions<T>): void;
272
272
  createSearchClient(options: AzureAISearchOptions<T>): void;
273
273
  /**
@@ -383,7 +383,7 @@ declare class AzureCosmosDBMongoDBVectorStore extends BaseVectorStore {
383
383
  dbName: string;
384
384
  collectionName: string;
385
385
  indexedMetadataFields?: string[];
386
- } & VectorStoreBaseParams);
386
+ });
387
387
  client(): MongoClient;
388
388
  ensureCollection(): Promise<Collection>;
389
389
  add(nodes: BaseNode[]): Promise<string[]>;
@@ -502,7 +502,7 @@ declare class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
502
502
  embeddingKey: string;
503
503
  private initialize;
504
504
  client(): unknown;
505
- constructor(dbConfig: AzureCosmosDBNoSQLConfig & VectorStoreBaseParams);
505
+ constructor(dbConfig: AzureCosmosDBNoSQLConfig);
506
506
  /**
507
507
  * Static method for creating an instance using a connection string.
508
508
  * If no connection string is provided, it will attempt to use the env variable `AZURE_COSMOSDB_NOSQL_CONNECTION_STRING` as connection string.
@@ -510,7 +510,7 @@ declare class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
510
510
  */
511
511
  static fromConnectionString(config?: {
512
512
  connectionString?: string;
513
- } & AzureCosmosDBNoSQLConfig & VectorStoreBaseParams): AzureCosmosDBNoSqlVectorStore;
513
+ } & AzureCosmosDBNoSQLConfig): AzureCosmosDBNoSqlVectorStore;
514
514
  /**
515
515
  * Static method for creating an instance using a account endpoint and key.
516
516
  * If no endpoint and key is provided, it will attempt to use the env variable `AZURE_COSMOSDB_NOSQL_ACCOUNT_ENDPOINT` as enpoint and `AZURE_COSMOSDB_NOSQL_ACCOUNT_KEY` as key.
@@ -519,7 +519,7 @@ declare class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
519
519
  static fromAccountAndKey(config?: {
520
520
  endpoint?: string;
521
521
  key?: string;
522
- } & AzureCosmosDBNoSQLConfig & VectorStoreBaseParams): AzureCosmosDBNoSqlVectorStore;
522
+ } & AzureCosmosDBNoSQLConfig): AzureCosmosDBNoSqlVectorStore;
523
523
  /**
524
524
  * Static method for creating an instance using account endpoint and managed identity.
525
525
  * If no endpoint and credentials are provided, it will attempt to use the env variable `AZURE_COSMOSDB_NOSQL_ACCOUNT_ENDPOINT` as endpoint and use DefaultAzureCredential() as credentials.
@@ -528,7 +528,7 @@ declare class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
528
528
  static fromUriAndManagedIdentity(config?: {
529
529
  endpoint?: string;
530
530
  credential?: TokenCredential;
531
- } & AzureCosmosDBNoSQLConfig & VectorStoreBaseParams): AzureCosmosDBNoSqlVectorStore;
531
+ } & AzureCosmosDBNoSQLConfig): AzureCosmosDBNoSqlVectorStore;
532
532
  /**
533
533
  * Adds document to the CosmosDB container.
534
534
  *
@@ -1,4 +1,4 @@
1
- import { Document, metadataDictToNode, BaseVectorStore, MetadataMode, nodeToMetadata, FilterOperator, FilterCondition, VectorStoreQueryMode } from '@vectorstores/core';
1
+ import { Document, metadataDictToNode, BaseVectorStore, MetadataMode, nodeToMetadata, FilterOperator, FilterCondition } from '@vectorstores/core';
2
2
  export * from './storage.edge-light.js';
3
3
  import { DefaultAzureCredential, ManagedIdentityCredential } from '@azure/identity';
4
4
  import { KnownVectorSearchAlgorithmKind, KnownAnalyzerNames, KnownSearchFieldDataType, KnownVectorSearchAlgorithmMetric, KnownVectorSearchCompressionKind, SearchClient, SearchIndexClient, AzureKeyCredential, IndexDocumentsBatch } from '@azure/search-documents';
@@ -394,7 +394,7 @@ console.log({ response });
394
394
  #indexMapping;
395
395
  #hiddenFiledKeys;
396
396
  constructor(options){
397
- super(options), this.storesText = true, this.#metadataToIndexFieldMap = new Map(), this.flatMetadata = true;
397
+ super(), this.storesText = true, this.#metadataToIndexFieldMap = new Map(), this.flatMetadata = true;
398
398
  // set default values
399
399
  options.vectorAlgorithmType ||= KnownVectorSearchAlgorithmKind.ExhaustiveKnn;
400
400
  options.languageAnalyzer ||= KnownAnalyzerNames.EnLucene;
@@ -1105,13 +1105,14 @@ console.log({ response });
1105
1105
  // Define base AzureQueryResultSearch object based on query mode
1106
1106
  let azureQueryResultSearch = new AzureQueryResultSearchDefault(query, this.#fieldMapping, odataFilter, this._searchClient);
1107
1107
  switch(query.mode){
1108
- case VectorStoreQueryMode.SPARSE:
1108
+ case "sparse":
1109
+ case "bm25":
1109
1110
  azureQueryResultSearch = new AzureQueryResultSearchSparse(query, this.#fieldMapping, odataFilter, this._searchClient);
1110
1111
  break;
1111
- case VectorStoreQueryMode.HYBRID:
1112
+ case "hybrid":
1112
1113
  azureQueryResultSearch = new AzureQueryResultSearchHybrid(query, this.#fieldMapping, odataFilter, this._searchClient);
1113
1114
  break;
1114
- case VectorStoreQueryMode.SEMANTIC_HYBRID:
1115
+ case "semantic_hybrid":
1115
1116
  azureQueryResultSearch = new AzureQueryResultSearchSemanticHybrid(query, this.#fieldMapping, odataFilter, this._searchClient);
1116
1117
  break;
1117
1118
  }
@@ -1130,7 +1131,7 @@ console.log({ response });
1130
1131
  }
1131
1132
  }
1132
1133
 
1133
- var version = "0.1.5";
1134
+ var version = "0.1.7";
1134
1135
  var pkg = {
1135
1136
  version: version};
1136
1137
 
@@ -1152,7 +1153,7 @@ var pkg = {
1152
1153
  * automatically using the `createIndex` method.
1153
1154
  */ class AzureCosmosDBMongoDBVectorStore extends BaseVectorStore {
1154
1155
  constructor(init){
1155
- super(init), this.storesText = true, this.flatMetadata = true;
1156
+ super(), this.storesText = true, this.flatMetadata = true;
1156
1157
  if (init.mongodbClient) {
1157
1158
  this.mongodbClient = init.mongodbClient;
1158
1159
  } else {
@@ -1425,7 +1426,7 @@ class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
1425
1426
  return this.cosmosClient;
1426
1427
  }
1427
1428
  constructor(dbConfig){
1428
- super(dbConfig), this.storesText = true, this.flatMetadata = true;
1429
+ super(), this.storesText = true, this.flatMetadata = true;
1429
1430
  if (!dbConfig.client) {
1430
1431
  throw new Error("CosmosClient is required for AzureCosmosDBNoSQLVectorStore initialization");
1431
1432
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Document, metadataDictToNode, BaseVectorStore, MetadataMode, nodeToMetadata, FilterOperator, FilterCondition, VectorStoreQueryMode } from '@vectorstores/core';
1
+ import { Document, metadataDictToNode, BaseVectorStore, MetadataMode, nodeToMetadata, FilterOperator, FilterCondition } from '@vectorstores/core';
2
2
  export * from './storage.js';
3
3
  import { DefaultAzureCredential, ManagedIdentityCredential } from '@azure/identity';
4
4
  import { KnownVectorSearchAlgorithmKind, KnownAnalyzerNames, KnownSearchFieldDataType, KnownVectorSearchAlgorithmMetric, KnownVectorSearchCompressionKind, SearchClient, SearchIndexClient, AzureKeyCredential, IndexDocumentsBatch } from '@azure/search-documents';
@@ -394,7 +394,7 @@ console.log({ response });
394
394
  #indexMapping;
395
395
  #hiddenFiledKeys;
396
396
  constructor(options){
397
- super(options), this.storesText = true, this.#metadataToIndexFieldMap = new Map(), this.flatMetadata = true;
397
+ super(), this.storesText = true, this.#metadataToIndexFieldMap = new Map(), this.flatMetadata = true;
398
398
  // set default values
399
399
  options.vectorAlgorithmType ||= KnownVectorSearchAlgorithmKind.ExhaustiveKnn;
400
400
  options.languageAnalyzer ||= KnownAnalyzerNames.EnLucene;
@@ -1105,13 +1105,14 @@ console.log({ response });
1105
1105
  // Define base AzureQueryResultSearch object based on query mode
1106
1106
  let azureQueryResultSearch = new AzureQueryResultSearchDefault(query, this.#fieldMapping, odataFilter, this._searchClient);
1107
1107
  switch(query.mode){
1108
- case VectorStoreQueryMode.SPARSE:
1108
+ case "sparse":
1109
+ case "bm25":
1109
1110
  azureQueryResultSearch = new AzureQueryResultSearchSparse(query, this.#fieldMapping, odataFilter, this._searchClient);
1110
1111
  break;
1111
- case VectorStoreQueryMode.HYBRID:
1112
+ case "hybrid":
1112
1113
  azureQueryResultSearch = new AzureQueryResultSearchHybrid(query, this.#fieldMapping, odataFilter, this._searchClient);
1113
1114
  break;
1114
- case VectorStoreQueryMode.SEMANTIC_HYBRID:
1115
+ case "semantic_hybrid":
1115
1116
  azureQueryResultSearch = new AzureQueryResultSearchSemanticHybrid(query, this.#fieldMapping, odataFilter, this._searchClient);
1116
1117
  break;
1117
1118
  }
@@ -1130,7 +1131,7 @@ console.log({ response });
1130
1131
  }
1131
1132
  }
1132
1133
 
1133
- var version = "0.1.5";
1134
+ var version = "0.1.7";
1134
1135
  var pkg = {
1135
1136
  version: version};
1136
1137
 
@@ -1152,7 +1153,7 @@ var pkg = {
1152
1153
  * automatically using the `createIndex` method.
1153
1154
  */ class AzureCosmosDBMongoDBVectorStore extends BaseVectorStore {
1154
1155
  constructor(init){
1155
- super(init), this.storesText = true, this.flatMetadata = true;
1156
+ super(), this.storesText = true, this.flatMetadata = true;
1156
1157
  if (init.mongodbClient) {
1157
1158
  this.mongodbClient = init.mongodbClient;
1158
1159
  } else {
@@ -1425,7 +1426,7 @@ class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
1425
1426
  return this.cosmosClient;
1426
1427
  }
1427
1428
  constructor(dbConfig){
1428
- super(dbConfig), this.storesText = true, this.flatMetadata = true;
1429
+ super(), this.storesText = true, this.flatMetadata = true;
1429
1430
  if (!dbConfig.client) {
1430
1431
  throw new Error("CosmosClient is required for AzureCosmosDBNoSQLVectorStore initialization");
1431
1432
  }
package/dist/storage.cjs CHANGED
@@ -5,7 +5,7 @@ var cosmos = require('@azure/cosmos');
5
5
  var identity = require('@azure/identity');
6
6
  var env = require('@vectorstores/env');
7
7
 
8
- var version = "0.1.5";
8
+ var version = "0.1.7";
9
9
  var pkg = {
10
10
  version: version};
11
11
 
@@ -3,7 +3,7 @@ import { CosmosClient } from '@azure/cosmos';
3
3
  import { DefaultAzureCredential } from '@azure/identity';
4
4
  import { getEnv } from '@vectorstores/env';
5
5
 
6
- var version = "0.1.5";
6
+ var version = "0.1.7";
7
7
  var pkg = {
8
8
  version: version};
9
9
 
package/dist/storage.js CHANGED
@@ -3,7 +3,7 @@ import { CosmosClient } from '@azure/cosmos';
3
3
  import { DefaultAzureCredential } from '@azure/identity';
4
4
  import { getEnv } from '@vectorstores/env';
5
5
 
6
- var version = "0.1.5";
6
+ var version = "0.1.7";
7
7
  var pkg = {
8
8
  version: version};
9
9
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vectorstores/azure",
3
3
  "description": "Azure Storage for vectorstores",
4
- "version": "0.1.5",
4
+ "version": "0.1.7",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -55,11 +55,11 @@
55
55
  "@types/node": "^24.0.13",
56
56
  "dotenv": "^17.2.0",
57
57
  "vitest": "^2.1.5",
58
- "@vectorstores/core": "0.1.5",
58
+ "@vectorstores/core": "0.1.7",
59
59
  "@vectorstores/env": "0.1.0"
60
60
  },
61
61
  "peerDependencies": {
62
- "@vectorstores/core": "0.1.5",
62
+ "@vectorstores/core": "0.1.7",
63
63
  "@vectorstores/env": "0.1.0"
64
64
  },
65
65
  "dependencies": {