Skip to content

Commit ac673fa

Browse files
committed
fixes
1 parent 534a60a commit ac673fa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/ai/quickstarts/quickstart-ai-chat-with-data.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ zone_pivot_groups: openai-library
1212

1313
# Build a .NET AI app to integrate with vector stores
1414

15-
In this quickstart, you create a .NET console app that integrates with AI embedding models and vector stores. You learn how to generate embeddings for user prompts and use those embeddings to query a vector data store. The app uses the [Microsoft.Extensions.VectorData.Abstractions](https://www.nuget.org/packages/Microsoft.Extensions.VectorData.Abstractions/) library so you can write code using AI abstractions rather than a specific SDK. AI abstractions help create loosely coupled code that allows you to change the underlying AI model with minimal app changes.
15+
In this quickstart, you create a .NET console app that integrates with AI embedding models and vector stores. You learn how to generate embeddings for user prompts and use those embeddings to query a vector data store. The app uses the [Microsoft.Extensions.AI](https://www.nuget.org/packages/Microsoft.Extensions.AI) and [Microsoft.Extensions.VectorData.Abstractions](https://www.nuget.org/packages/Microsoft.Extensions.VectorData.Abstractions) libraries so you can write code using AI abstractions rather than a specific SDK. AI abstractions help create loosely coupled code that allows you to change the underlying AI model with minimal app changes.
1616

1717
:::zone target="docs" pivot="openai"
1818

@@ -99,7 +99,7 @@ Complete the following steps to create a .NET console app that can query and upd
9999
100100
The following list describes what each package is used for in the `VectorDataAI` app:
101101
102-
- [`Microsoft.Extensions.AI.OpenAI`](https://www.nuget.org/packages/Microsoft.Extensions.AI.OpenAI) provides of generative AI abstractions for OpenAI-compatible endpoints. This library also includes the official [`OpenAI`](https://www.nuget.org/packages/OpenAI) library for the OpenAI service API as a dependency.
102+
- [`Microsoft.Extensions.AI.OpenAI`](https://www.nuget.org/packages/Microsoft.Extensions.AI.OpenAI) provides generative AI abstractions for OpenAI-compatible endpoints. This library also includes the official [`OpenAI`](https://www.nuget.org/packages/OpenAI) library for the OpenAI service API as a dependency.
103103
- [`Microsoft.SemanticKernel.Connectors.InMemory`](https://www.nuget.org/packages/Microsoft.SemanticKernel.Connectors.InMemory) provides an in-memory vector store class to hold queryable vector data records.
104104
- [`Microsoft.Extensions.VectorData.Abstractions`](https://www.nuget.org/packages/Microsoft.Extensions.AI) enables Create-Read-Update-Delete (CRUD) and search operations on vector stores.
105105
- [Microsoft.Extensions.Configuration](https://www.nuget.org/packages/Microsoft.Extensions.Configuration) provides Implementation of key-value pair based configuration.
@@ -139,13 +139,13 @@ Complete the following steps to create a .NET console app that can query and upd
139139
140140
1. Add a new classed named **CloudService** to your project with the following properties:
141141
142-
:::code language="csharp" source="snippets/chat-with-data/azure-openai/CloudService.cs" range="1-11":::
142+
:::code language="csharp" source="snippets/chat-with-data/azure-openai/CloudService.cs" :::
143143
144144
The C# attributes provided by `Microsoft.Extensions.VectorData` influence how each property is handled when used in a vector store.
145145
146146
1. In the **Program.cs** file, add the following code to create a data set that describes a collection of cloud services:
147147
148-
:::code language="csharp" source="snippets/chat-with-data/azure-openai/CloudService.cs" range="8-46":::
148+
:::code language="csharp" source="snippets/chat-with-data/azure-openai/program.cs" range="8-46":::
149149
150150
1. Create and configure an `IEmbeddingGenerator` implementation to send requests to an embedding AI model:
151151
@@ -166,13 +166,13 @@ Complete the following steps to create a .NET console app that can query and upd
166166
167167
1. Create and populate a vector store with the cloud service data. Use the `IEmbeddingGenerator` implementation to create and assign an embedding vector for each record in the cloud service data:
168168
169-
:::code language="csharp" source="snippets/chat-with-data/azure-openai/program.cs" range="60-69":::
169+
:::code language="csharp" source="snippets/chat-with-data/azure-openai/program.cs" range="61-70":::
170170
171171
The embeddings are numerical representations of the semantic meaning for each data record, which makes them compatible with vector search features.
172172
173173
1. Create an embedding for a search query and use it to perform a vector search on the vector store:
174174
175-
:::code language="csharp" source="snippets/chat-with-data/azure-openai/program.cs" range="71-87":::
175+
:::code language="csharp" source="snippets/chat-with-data/azure-openai/program.cs" range="72-88":::
176176
177177
1. Use the `dotnet run` command to run the app:
178178

0 commit comments

Comments
 (0)