diff --git a/.gitignore b/.gitignore index ce89292..29dab28 100644 --- a/.gitignore +++ b/.gitignore @@ -300,6 +300,8 @@ FakesAssemblies/ # Node.js Tools for Visual Studio .ntvs_analysis.dat node_modules/ +dist/ +package-lock.json # Visual Studio 6 build log *.plg diff --git a/ai/vector-search-typescript/.env.example b/ai/vector-search-typescript/.env.example index 9bf4f8a..0804478 100644 --- a/ai/vector-search-typescript/.env.example +++ b/ai/vector-search-typescript/.env.example @@ -23,7 +23,7 @@ EMBEDDING_DIMENSIONS=1536 LOAD_SIZE_BATCH=100 # ======================================== -# MongoDB/Cosmos DB Connection Settings +# MongoDB/DocumentDB Connection Settings # ======================================== MONGO_CONNECTION_STRING=mongodb+srv://:@.global.mongocluster.cosmos.azure.com/?tls=true&authMechanism=SCRAM-SHA-256&retrywrites=false&maxIdleTimeMS=120000 MONGO_CLUSTER_NAME= diff --git a/ai/vector-search-typescript/package.json b/ai/vector-search-typescript/package.json index 823fc94..6c9e363 100644 --- a/ai/vector-search-typescript/package.json +++ b/ai/vector-search-typescript/package.json @@ -1,7 +1,7 @@ { - "name": "ts-cosmos-nodejs-vector-samples", + "name": "ts-documentdb-nodejs-vector-samples", "version": "1.0.0", - "description": "Samples for MongoDB vCore vector search with Cosmos DB", + "description": "Samples for MongoDB vCore vector search with DocumentDB", "main": "index.js", "type": "module", "scripts": { diff --git a/ai/vector-search-typescript/src/create-embeddings.ts b/ai/vector-search-typescript/src/create-embeddings.ts index 6524bce..295e451 100644 --- a/ai/vector-search-typescript/src/create-embeddings.ts +++ b/ai/vector-search-typescript/src/create-embeddings.ts @@ -1,7 +1,7 @@ /** * Module for creating embedding vectors using OpenAI API * Supports text embedding models for generating embeddings - * that can be used with Cosmos DB MongoDB vCore vector search + * that can be used with DocumentDB MongoDB vCore vector search */ import * as path from "node:path"; import { AzureOpenAI } from "openai"; diff --git a/ai/vector-search-typescript/src/utils.ts b/ai/vector-search-typescript/src/utils.ts index f557ade..88b7021 100644 --- a/ai/vector-search-typescript/src/utils.ts +++ b/ai/vector-search-typescript/src/utils.ts @@ -61,7 +61,7 @@ export function getClientsPasswordless(): { aiClient: AzureOpenAI | null; dbClie }); } - // For Cosmos DB with DefaultAzureCredential + // For DocumentDB with DefaultAzureCredential const clusterName = process.env.MONGO_CLUSTER_NAME!; if (clusterName) {