@vectorstores/azure 0.1.4 → 0.1.5

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
@@ -365,11 +365,10 @@ const vectorStore = new AzureAISearchVectorStore({
365
365
  const documents = await new SimpleDirectoryReader().loadData(
366
366
  "data/paul_graham/",
367
367
  );
368
- const storageContext = await storageContextFromDefaults({ vectorStore });
369
368
 
370
- // Create index from documents with the specified storage context
369
+ // Create index from documents with the specified vector store
371
370
  const index = await VectorStoreIndex.fromDocuments(documents, {
372
- storageContext,
371
+ vectorStore,
373
372
  docStoreStrategy: DocStoreStrategy.UPSERTS,
374
373
  });
375
374
 
@@ -1133,7 +1132,7 @@ console.log({ response });
1133
1132
  }
1134
1133
  }
1135
1134
 
1136
- var version = "0.1.4";
1135
+ var version = "0.1.5";
1137
1136
  var pkg = {
1138
1137
  version: version};
1139
1138
 
package/dist/index.d.cts CHANGED
@@ -247,11 +247,10 @@ const vectorStore = new AzureAISearchVectorStore({
247
247
  const documents = await new SimpleDirectoryReader().loadData(
248
248
  "data/paul_graham/",
249
249
  );
250
- const storageContext = await storageContextFromDefaults({ vectorStore });
251
250
 
252
- // Create index from documents with the specified storage context
251
+ // Create index from documents with the specified vector store
253
252
  const index = await VectorStoreIndex.fromDocuments(documents, {
254
- storageContext,
253
+ vectorStore,
255
254
  docStoreStrategy: DocStoreStrategy.UPSERTS,
256
255
  });
257
256
 
package/dist/index.d.ts CHANGED
@@ -247,11 +247,10 @@ const vectorStore = new AzureAISearchVectorStore({
247
247
  const documents = await new SimpleDirectoryReader().loadData(
248
248
  "data/paul_graham/",
249
249
  );
250
- const storageContext = await storageContextFromDefaults({ vectorStore });
251
250
 
252
- // Create index from documents with the specified storage context
251
+ // Create index from documents with the specified vector store
253
252
  const index = await VectorStoreIndex.fromDocuments(documents, {
254
- storageContext,
253
+ vectorStore,
255
254
  docStoreStrategy: DocStoreStrategy.UPSERTS,
256
255
  });
257
256
 
@@ -247,11 +247,10 @@ const vectorStore = new AzureAISearchVectorStore({
247
247
  const documents = await new SimpleDirectoryReader().loadData(
248
248
  "data/paul_graham/",
249
249
  );
250
- const storageContext = await storageContextFromDefaults({ vectorStore });
251
250
 
252
- // Create index from documents with the specified storage context
251
+ // Create index from documents with the specified vector store
253
252
  const index = await VectorStoreIndex.fromDocuments(documents, {
254
- storageContext,
253
+ vectorStore,
255
254
  docStoreStrategy: DocStoreStrategy.UPSERTS,
256
255
  });
257
256
 
@@ -363,11 +363,10 @@ const vectorStore = new AzureAISearchVectorStore({
363
363
  const documents = await new SimpleDirectoryReader().loadData(
364
364
  "data/paul_graham/",
365
365
  );
366
- const storageContext = await storageContextFromDefaults({ vectorStore });
367
366
 
368
- // Create index from documents with the specified storage context
367
+ // Create index from documents with the specified vector store
369
368
  const index = await VectorStoreIndex.fromDocuments(documents, {
370
- storageContext,
369
+ vectorStore,
371
370
  docStoreStrategy: DocStoreStrategy.UPSERTS,
372
371
  });
373
372
 
@@ -1131,7 +1130,7 @@ console.log({ response });
1131
1130
  }
1132
1131
  }
1133
1132
 
1134
- var version = "0.1.4";
1133
+ var version = "0.1.5";
1135
1134
  var pkg = {
1136
1135
  version: version};
1137
1136
 
package/dist/index.js CHANGED
@@ -363,11 +363,10 @@ const vectorStore = new AzureAISearchVectorStore({
363
363
  const documents = await new SimpleDirectoryReader().loadData(
364
364
  "data/paul_graham/",
365
365
  );
366
- const storageContext = await storageContextFromDefaults({ vectorStore });
367
366
 
368
- // Create index from documents with the specified storage context
367
+ // Create index from documents with the specified vector store
369
368
  const index = await VectorStoreIndex.fromDocuments(documents, {
370
- storageContext,
369
+ vectorStore,
371
370
  docStoreStrategy: DocStoreStrategy.UPSERTS,
372
371
  });
373
372
 
@@ -1131,7 +1130,7 @@ console.log({ response });
1131
1130
  }
1132
1131
  }
1133
1132
 
1134
- var version = "0.1.4";
1133
+ var version = "0.1.5";
1135
1134
  var pkg = {
1136
1135
  version: version};
1137
1136
 
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.4";
8
+ var version = "0.1.5";
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.4";
6
+ var version = "0.1.5";
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.4";
6
+ var version = "0.1.5";
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.4",
4
+ "version": "0.1.5",
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.4",
58
+ "@vectorstores/core": "0.1.5",
59
59
  "@vectorstores/env": "0.1.0"
60
60
  },
61
61
  "peerDependencies": {
62
- "@vectorstores/core": "0.1.4",
62
+ "@vectorstores/core": "0.1.5",
63
63
  "@vectorstores/env": "0.1.0"
64
64
  },
65
65
  "dependencies": {