Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwolfmsft committed Dec 12, 2024
1 parent 4685a9b commit 8159778
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
var cloudServices = vectorStore.GetCollection<int, CloudService>("cloudServices");
await cloudServices.CreateCollectionIfNotExistsAsync();

foreach (var movie in cloudService)
foreach (var cloudService in cloudServices)

Check failure on line 66 in docs/ai/quickstarts/snippets/chat-with-data/azure-openai/Program.cs

View workflow job for this annotation

GitHub Actions / snippets-build

D:\a\docs\docs\docs\ai\quickstarts\snippets\chat-with-data\azure-openai\Program.cs(66,30): error CS1579: foreach statement cannot operate on variables of type 'IVectorStoreRecordCollection<int, CloudService>' because 'IVectorStoreRecordCollection<int, CloudService>' does not contain a public instance or extension definition for 'GetEnumerator' [D:\a\docs\docs\docs\ai\quickstarts\snippets\chat-with-data\azure-openai\VectorDataAI.csproj]

Check failure on line 66 in docs/ai/quickstarts/snippets/chat-with-data/azure-openai/Program.cs

View workflow job for this annotation

GitHub Actions / snippets-build

D:\a\docs\docs\docs\ai\quickstarts\snippets\chat-with-data\azure-openai\Program.cs(66,14): error CS0136: A local or parameter named 'cloudService' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter [D:\a\docs\docs\docs\ai\quickstarts\snippets\chat-with-data\azure-openai\VectorDataAI.csproj]
{
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
Expand Down
6 changes: 3 additions & 3 deletions docs/ai/quickstarts/snippets/chat-with-data/openai/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
var cloudServices = vectorStore.GetCollection<int, CloudService>("cloudServices");
await cloudServices.CreateCollectionIfNotExistsAsync();

foreach (var movie in cloudService)
foreach (var cloudService in cloudServices)

Check failure on line 64 in docs/ai/quickstarts/snippets/chat-with-data/openai/Program.cs

View workflow job for this annotation

GitHub Actions / snippets-build

D:\a\docs\docs\docs\ai\quickstarts\snippets\chat-with-data\openai\Program.cs(64,30): error CS1579: foreach statement cannot operate on variables of type 'IVectorStoreRecordCollection<int, CloudService>' because 'IVectorStoreRecordCollection<int, CloudService>' does not contain a public instance or extension definition for 'GetEnumerator' [D:\a\docs\docs\docs\ai\quickstarts\snippets\chat-with-data\openai\VectorDataAI.csproj]

Check failure on line 64 in docs/ai/quickstarts/snippets/chat-with-data/openai/Program.cs

View workflow job for this annotation

GitHub Actions / snippets-build

D:\a\docs\docs\docs\ai\quickstarts\snippets\chat-with-data\openai\Program.cs(64,14): error CS0136: A local or parameter named 'cloudService' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter [D:\a\docs\docs\docs\ai\quickstarts\snippets\chat-with-data\openai\VectorDataAI.csproj]
{
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
Expand Down

0 comments on commit 8159778

Please sign in to comment.