@vectorstores/azure 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
@@ -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;
@@ -1133,7 +1133,7 @@ console.log({ response });
1133
1133
  }
1134
1134
  }
1135
1135
 
1136
- var version = "0.1.6";
1136
+ var version = "0.1.7";
1137
1137
  var pkg = {
1138
1138
  version: version};
1139
1139
 
@@ -1155,7 +1155,7 @@ var pkg = {
1155
1155
  * automatically using the `createIndex` method.
1156
1156
  */ class AzureCosmosDBMongoDBVectorStore extends core.BaseVectorStore {
1157
1157
  constructor(init){
1158
- super(init), this.storesText = true, this.flatMetadata = true;
1158
+ super(), this.storesText = true, this.flatMetadata = true;
1159
1159
  if (init.mongodbClient) {
1160
1160
  this.mongodbClient = init.mongodbClient;
1161
1161
  } else {
@@ -1428,7 +1428,7 @@ class AzureCosmosDBNoSqlVectorStore extends core.BaseVectorStore {
1428
1428
  return this.cosmosClient;
1429
1429
  }
1430
1430
  constructor(dbConfig){
1431
- super(dbConfig), this.storesText = true, this.flatMetadata = true;
1431
+ super(), this.storesText = true, this.flatMetadata = true;
1432
1432
  if (!dbConfig.client) {
1433
1433
  throw new Error("CosmosClient is required for AzureCosmosDBNoSQLVectorStore initialization");
1434
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
  *
@@ -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;
@@ -1131,7 +1131,7 @@ console.log({ response });
1131
1131
  }
1132
1132
  }
1133
1133
 
1134
- var version = "0.1.6";
1134
+ var version = "0.1.7";
1135
1135
  var pkg = {
1136
1136
  version: version};
1137
1137
 
@@ -1153,7 +1153,7 @@ var pkg = {
1153
1153
  * automatically using the `createIndex` method.
1154
1154
  */ class AzureCosmosDBMongoDBVectorStore extends BaseVectorStore {
1155
1155
  constructor(init){
1156
- super(init), this.storesText = true, this.flatMetadata = true;
1156
+ super(), this.storesText = true, this.flatMetadata = true;
1157
1157
  if (init.mongodbClient) {
1158
1158
  this.mongodbClient = init.mongodbClient;
1159
1159
  } else {
@@ -1426,7 +1426,7 @@ class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
1426
1426
  return this.cosmosClient;
1427
1427
  }
1428
1428
  constructor(dbConfig){
1429
- super(dbConfig), this.storesText = true, this.flatMetadata = true;
1429
+ super(), this.storesText = true, this.flatMetadata = true;
1430
1430
  if (!dbConfig.client) {
1431
1431
  throw new Error("CosmosClient is required for AzureCosmosDBNoSQLVectorStore initialization");
1432
1432
  }
package/dist/index.js CHANGED
@@ -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;
@@ -1131,7 +1131,7 @@ console.log({ response });
1131
1131
  }
1132
1132
  }
1133
1133
 
1134
- var version = "0.1.6";
1134
+ var version = "0.1.7";
1135
1135
  var pkg = {
1136
1136
  version: version};
1137
1137
 
@@ -1153,7 +1153,7 @@ var pkg = {
1153
1153
  * automatically using the `createIndex` method.
1154
1154
  */ class AzureCosmosDBMongoDBVectorStore extends BaseVectorStore {
1155
1155
  constructor(init){
1156
- super(init), this.storesText = true, this.flatMetadata = true;
1156
+ super(), this.storesText = true, this.flatMetadata = true;
1157
1157
  if (init.mongodbClient) {
1158
1158
  this.mongodbClient = init.mongodbClient;
1159
1159
  } else {
@@ -1426,7 +1426,7 @@ class AzureCosmosDBNoSqlVectorStore extends BaseVectorStore {
1426
1426
  return this.cosmosClient;
1427
1427
  }
1428
1428
  constructor(dbConfig){
1429
- super(dbConfig), this.storesText = true, this.flatMetadata = true;
1429
+ super(), this.storesText = true, this.flatMetadata = true;
1430
1430
  if (!dbConfig.client) {
1431
1431
  throw new Error("CosmosClient is required for AzureCosmosDBNoSQLVectorStore initialization");
1432
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.6";
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.6";
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.6";
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.6",
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.6",
58
+ "@vectorstores/core": "0.1.7",
59
59
  "@vectorstores/env": "0.1.0"
60
60
  },
61
61
  "peerDependencies": {
62
- "@vectorstores/core": "0.1.6",
62
+ "@vectorstores/core": "0.1.7",
63
63
  "@vectorstores/env": "0.1.0"
64
64
  },
65
65
  "dependencies": {