Skip to content

Commit 3617ce1

Browse files
committed
Updated File name
1 parent 0d3d51d commit 3617ce1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

articles/cosmos-db/mongodb/vcore/AI-ad-gen.md renamed to articles/cosmos-db/mongodb/vcore/AI-advertisement-generation.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ ms.date: 03/12/2024
1212
---
1313

1414
# AI-Enhanced Advertisement Generation using Azure Cosmos DB for MongoDB vCore
15-
## Overview
1615
In this guide, we demonstrate how to create dynamic advertising content that resonates with your audience, using our personalized AI assistant, Heelie. Utilizing Azure Cosmos DB for MongoDB vCore, we harness the [vector similarity search](./vector-search.md) functionality to semantically analyze and match inventory descriptions with advertisement topics. The process is made possible by generating vectors for inventory descriptions using OpenAI embeddings, which significantly enhance their semantic depth. These vectors are then stored and indexed within the Cosmos DB for MongoDB vCore resource. When generating content for advertisements, we vectorize the advertisement topic to find the best-matching inventory items. This is followed by a retrieval augmented generation (RAG) process, where the top matches are sent to OpenAI to craft a compelling advertisement. The entire codebase for the application is available in a [GitHub repository](https://aka.ms/adgen) for your reference.
1716

1817
## Features
@@ -113,7 +112,7 @@ if embeddings is not None:
113112

114113
The function takes a text input — like a product description — and uses the `client.embeddings.create` method from the OpenAI API to generate a vector embedding for that text. We're using the `text-embedding-ada-002` model here, but you can choose other models based on your requirements. If the process is successful, it prints the generated embeddings; otherwise, it handles exceptions by printing an error message.
115114

116-
## 3. Connect and setup Cosmos DB for MongoDB vCore
115+
## 3. Connect and set up Cosmos DB for MongoDB vCore
117116
With our embeddings ready, the next step is to store and index them in a database that supports vector similarity search. Azure Cosmos DB for MongoDB vCore is a perfect fit for this task because it's purpose built to store your transactional data and perform vector search all in one place.
118117

119118
### 3.1 Set up the connection

articles/cosmos-db/mongodb/vcore/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@
8787
- name: Solution accelerators
8888
href: ../../solutions.md?pivots=api-mongodb
8989
- name: AI-Enhanced Advertisement Generation
90-
href: AI-ad-gen.md
90+
href: AI-advertisement-generation.md
9191

articles/cosmos-db/mongodb/vcore/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ landingContent:
9393
- linkListType: sample
9494
links:
9595
- text: AI-Enhanced Advertisement Generation
96-
url: AI-ad-gen.md
96+
url: AI-advertisement-generation.md

0 commit comments

Comments
 (0)