Skip to content

Fix vector code search snippets #46581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 6, 2025
Merged

Conversation

gewarren
Copy link
Contributor

@gewarren gewarren commented Jun 5, 2025

@gewarren gewarren requested review from alexwolfmsft and a team as code owners June 5, 2025 01:24
@dotnetrepoman dotnetrepoman bot added this to the June 2025 milestone Jun 5, 2025
@gewarren gewarren requested a review from adegeo June 5, 2025 01:26
@gewarren gewarren requested a review from Copilot June 6, 2025 02:33
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the vector-search code samples and documentation to use the latest .NET 9.0 framework, aligned package versions, and refreshed snippet markers and APIs for both OpenAI and Azure OpenAI quickstarts.

  • Bump target frameworks to .NET 9.0 and upgrade package references in both sample projects
  • Refactor Program.cs files to use new vector-store APIs and updated snippet region tags
  • Modernize CloudService classes with file-scoped namespaces and updated VectorData attributes; refresh docs links and formatting

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/ai/quickstarts/snippets/chat-with-data/openai/VectorDataAI.csproj Bump TargetFramework to net9.0 and update OpenAI/VectorData packages
docs/ai/quickstarts/snippets/chat-with-data/openai/Program.cs Adjust using directives, switch to new API calls, update snippet tags
docs/ai/quickstarts/snippets/chat-with-data/openai/CloudService.cs Migrate to file-scoped namespace and update VectorData attributes
docs/ai/quickstarts/snippets/chat-with-data/azure-openai/VectorDataAI.csproj Update UserSecretsId and package versions
docs/ai/quickstarts/snippets/chat-with-data/azure-openai/Program.cs Add using System.Linq;, refine snippet markers, update API calls
docs/ai/quickstarts/snippets/chat-with-data/azure-openai/CloudService.cs Reformat [VectorStoreVector] attribute
docs/ai/quickstarts/includes/prerequisites-openai.md Update OpenAI API key link URL
docs/ai/quickstarts/build-vector-search-app.md Restructure intro/prerequisites, fix bullet formatting
Comments suppressed due to low confidence (2)

docs/ai/quickstarts/snippets/chat-with-data/openai/Program.cs:6

  • The namespace 'System.ClientModel' appears incorrect or does not exist; remove or replace this using directive with the intended namespace.
using System.ClientModel;

docs/ai/quickstarts/snippets/chat-with-data/azure-openai/Program.cs:7

  • [nitpick] The 'System.Linq' import is not used in this file and can be removed to clean up unused dependencies.
using System.Linq;

@gewarren gewarren merged commit e42a868 into dotnet:main Jun 6, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leftover Deprecated code on "Build a .NET AI vector search app" page.
1 participant