From 81597788a21dc6193eb973f557de3ac624e30201 Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Thu, 12 Dec 2024 17:54:22 -0500 Subject: [PATCH] fixes --- .../snippets/chat-with-data/azure-openai/Program.cs | 6 +++--- .../quickstarts/snippets/chat-with-data/openai/Program.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/ai/quickstarts/snippets/chat-with-data/azure-openai/Program.cs b/docs/ai/quickstarts/snippets/chat-with-data/azure-openai/Program.cs index 1923a9f123594..d761082f827dd 100644 --- a/docs/ai/quickstarts/snippets/chat-with-data/azure-openai/Program.cs +++ b/docs/ai/quickstarts/snippets/chat-with-data/azure-openai/Program.cs @@ -63,10 +63,10 @@ var cloudServices = vectorStore.GetCollection("cloudServices"); await cloudServices.CreateCollectionIfNotExistsAsync(); -foreach (var movie in cloudService) +foreach (var cloudService in cloudServices) { - movie.Vector = await generator.GenerateEmbeddingVectorAsync(movie.Description); - await cloudServices.UpsertAsync(movie); + cloudService.Vector = await generator.GenerateEmbeddingVectorAsync(cloudService.Description); + await cloudServices.UpsertAsync(cloudService); } // Convert a search query to a vector and search the vector store diff --git a/docs/ai/quickstarts/snippets/chat-with-data/openai/Program.cs b/docs/ai/quickstarts/snippets/chat-with-data/openai/Program.cs index 36c0a2b85d06d..64b2f25637be7 100644 --- a/docs/ai/quickstarts/snippets/chat-with-data/openai/Program.cs +++ b/docs/ai/quickstarts/snippets/chat-with-data/openai/Program.cs @@ -61,10 +61,10 @@ var cloudServices = vectorStore.GetCollection("cloudServices"); await cloudServices.CreateCollectionIfNotExistsAsync(); -foreach (var movie in cloudService) +foreach (var cloudService in cloudServices) { - movie.Vector = await generator.GenerateEmbeddingVectorAsync(movie.Description); - await cloudServices.UpsertAsync(movie); + cloudService.Vector = await generator.GenerateEmbeddingVectorAsync(cloudService.Description); + await cloudServices.UpsertAsync(cloudService); } // Convert a search query to a vector and search the vector store