Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ai/vector-search-typescript/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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://<USERNAME>:<PASSWORD>@<CLUSTER-NAME>.global.mongocluster.cosmos.azure.com/?tls=true&authMechanism=SCRAM-SHA-256&retrywrites=false&maxIdleTimeMS=120000
MONGO_CLUSTER_NAME=<CLUSTER-NAME>
Expand Down
4 changes: 2 additions & 2 deletions ai/vector-search-typescript/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion ai/vector-search-typescript/src/create-embeddings.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion ai/vector-search-typescript/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down