diff --git a/dotnet/samples/GettingStartedWithVectorStores/Step1_Ingest_Data.cs b/dotnet/samples/GettingStartedWithVectorStores/Step1_Ingest_Data.cs
index a413a8921f57..40b6ed9640b3 100644
--- a/dotnet/samples/GettingStartedWithVectorStores/Step1_Ingest_Data.cs
+++ b/dotnet/samples/GettingStartedWithVectorStores/Step1_Ingest_Data.cs
@@ -25,8 +25,8 @@ public async Task IngestDataIntoInMemoryVectorStoreAsync()
await IngestDataIntoVectorStoreAsync(collection, fixture.TextEmbeddingGenerationService);
// Retrieve an item from the collection and write it to the console.
- var skDefinition = await collection.GetAsync("4");
- Console.WriteLine(skDefinition!.Definition);
+ var record = await collection.GetAsync("4");
+ Console.WriteLine(record!.Definition);
}
///
@@ -34,7 +34,8 @@ public async Task IngestDataIntoInMemoryVectorStoreAsync()
///
/// The collection to ingest data into.
/// The service to use for generating embeddings.
- internal static async Task IngestDataIntoVectorStoreAsync(
+ /// The keys of the upserted records.
+ internal static async Task> IngestDataIntoVectorStoreAsync(
IVectorStoreRecordCollection collection,
ITextEmbeddingGenerationService textEmbeddingGenerationService)
{
@@ -51,7 +52,7 @@ internal static async Task IngestDataIntoVectorStoreAsync(
// Upsert the glossary entries into the collection and return their keys.
var upsertedKeysTasks = glossaryEntries.Select(x => collection.UpsertAsync(x));
- var upsertedKeys = await Task.WhenAll(upsertedKeysTasks);
+ return await Task.WhenAll(upsertedKeysTasks);
}
///