From 4685a9b7b8dd96d21aa9729dd113f1280d719931 Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Thu, 12 Dec 2024 17:53:04 -0500 Subject: [PATCH] update variable name --- .../snippets/chat-with-data/azure-openai/Program.cs | 8 ++++---- .../quickstarts/snippets/chat-with-data/openai/Program.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 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 d826739a0ed7a..1923a9f123594 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 @@ -60,20 +60,20 @@ // Create and populate the vector store var vectorStore = new InMemoryVectorStore(); -var movies = vectorStore.GetCollection("movies"); -await movies.CreateCollectionIfNotExistsAsync(); +var cloudServices = vectorStore.GetCollection("cloudServices"); +await cloudServices.CreateCollectionIfNotExistsAsync(); foreach (var movie in cloudService) { movie.Vector = await generator.GenerateEmbeddingVectorAsync(movie.Description); - await movies.UpsertAsync(movie); + await cloudServices.UpsertAsync(movie); } // Convert a search query to a vector and search the vector store var query = "Which Azure service should I use to store my Word documents?"; var queryEmbedding = await generator.GenerateEmbeddingVectorAsync(query); -var results = await movies.VectorizedSearchAsync(queryEmbedding, new VectorSearchOptions() +var results = await cloudServices.VectorizedSearchAsync(queryEmbedding, new VectorSearchOptions() { Top = 1, VectorPropertyName = "Vector" 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 1d23f632f5dc7..36c0a2b85d06d 100644 --- a/docs/ai/quickstarts/snippets/chat-with-data/openai/Program.cs +++ b/docs/ai/quickstarts/snippets/chat-with-data/openai/Program.cs @@ -58,20 +58,20 @@ // Create and populate the vector store var vectorStore = new InMemoryVectorStore(); -var movies = vectorStore.GetCollection("movies"); -await movies.CreateCollectionIfNotExistsAsync(); +var cloudServices = vectorStore.GetCollection("cloudServices"); +await cloudServices.CreateCollectionIfNotExistsAsync(); foreach (var movie in cloudService) { movie.Vector = await generator.GenerateEmbeddingVectorAsync(movie.Description); - await movies.UpsertAsync(movie); + await cloudServices.UpsertAsync(movie); } // Convert a search query to a vector and search the vector store var query = "Which Azure service should I use to store my Word documents?"; var queryEmbedding = await generator.GenerateEmbeddingVectorAsync(query); -var results = await movies.VectorizedSearchAsync(queryEmbedding, new VectorSearchOptions() +var results = await cloudServices.VectorizedSearchAsync(queryEmbedding, new VectorSearchOptions() { Top = 1, VectorPropertyName = "Vector"