Skip to content

Commit b27a22b

Browse files
authored
Merge pull request #158 from microsoft/copilot/fix-157
Update documentation to correctly reference code samples in lesson 3
2 parents 4381487 + 82add61 commit b27a22b

File tree

5 files changed

+53
-2
lines changed

5 files changed

+53
-2
lines changed

03-CoreGenerativeAITechniques/01-lm-completions-functions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ Console.WriteLine(response.Text);
6161
> 🗒️**Note:** This example showed GitHub Models as the hosting service. If you want to use Ollama, [check out this example](./src/BasicChat-03Ollama/) (it instantiates a different `IChatClient`).
6262
>
6363
> If you want to use Azure AI Foundry you can use the same code, but you will need to change the endpoint and the credentials.
64+
>
65+
> If you want to use both Ollama and Semantic Kernel together, [check out the BasicChat-04OllamaSK example](./src/BasicChat-04OllamaSK/).
6466
>
6567
> For instructions on how to set up Ollama, refer to [Getting Started with Ollama](../02-SetupDevEnvironment/getting-started-ollama.md).
6668
@@ -135,6 +137,8 @@ When building AI applications you are not limited to just text-based interaction
135137
There are a couple of setup steps you need to take in order to call functions with MEAI.
136138

137139
> 🧑‍💻**Sample code**: [Here is a working example of function calling](./src/MEAIFunctions/) you can follow along with. To run this example, follow the same steps as for the previous examples, but navigate to `03-CoreGenerativeAITechniques/src/MEAIFunctions` directory.
140+
>
141+
> We also have examples showing function calling with [Azure OpenAI](./src/MEAIFunctionsAzureOpenAI/) and [Ollama](./src/MEAIFunctionsOllama/).
138142
139143
1. First, of course, define the function that you want the chatbot to be able to call. In this example we're going to get the weather forecast.
140144

03-CoreGenerativeAITechniques/02-retrieval-augmented-generation.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,15 @@ You may have heard of vector databases. These are databases that store data in a
3535

3636
We'll use the Microsoft.Extension.AI along with the [Microsoft.Extensions.VectorData](https://www.nuget.org/packages/Microsoft.Extensions.VectorData.Abstractions/) and [Microsoft.SemanticKernel.Connectors.InMemory](https://www.nuget.org/packages/Microsoft.SemanticKernel.Connectors.InMemory) libraries to implement RAG below.
3737

38-
> 🧑‍💻**Sample code:** You can follow along with the [sample code here](../03-CoreGenerativeAITechniques/src/RAGSimple-02MEAIVectorsMemory/).
38+
> 🧑‍💻**Sample code:** You can follow along with the [sample code here](./src/RAGSimple-02MEAIVectorsMemory/).
3939
>
4040
> You can also see how to implement a RAG app [using Semantic Kernel by itself in our sample source code here](./src/RAGSimple-01SK/).
41+
>
42+
> We have additional RAG examples for different vector stores and models:
43+
> - [RAGSimple-03MEAIVectorsAISearch](./src/RAGSimple-03MEAIVectorsAISearch/) - Using Azure AI Search as a vector store
44+
> - [RAGSimple-04MEAIVectorsQdrant](./src/RAGSimple-04MEAIVectorsQdrant/) - Using Qdrant as a vector store
45+
> - [RAGSimple-10SKOllama](./src/RAGSimple-10SKOllama/) - Using Semantic Kernel with Ollama
46+
> - [RAGSimple-15Ollama-DeepSeekR1](./src/RAGSimple-15Ollama-DeepSeekR1/) - Using Ollama with DeepSeek-R1 model
4147
4248
### Populating the knowledge store
4349

03-CoreGenerativeAITechniques/03-vision-audio.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ Ok - so we're going to put the model through its paces and ask it if it can tell
2121
![A composite showing both images the example will use. The first is several runners but only showing their legs. The second is a German restaurant receipt](./images/example-visual-image.png)
2222

2323
> 🧑‍💻**Sample code**: You can follow [along with sample code here](./src/Vision-01MEAI-GitHubModels/).
24+
>
25+
> We also have examples showing vision capabilities with:
26+
> - [Ollama](./src/Vision-02MEAI-Ollama/) - Using local Ollama models for vision tasks
27+
> - [Azure OpenAI](./src/Vision-03MEAI-AOAI/) - Using Azure OpenAI for vision tasks
28+
> - [Azure OpenAI with Spectre UI](./src/Vision-04MEAI-AOAI-Spectre/) - A more advanced UI using the Spectre console library
2429
2530
1. We're using MEAI and GitHub Models, so instantiate the `IChatClient` as we have been. Also start to create a chat history.
2631

03-CoreGenerativeAITechniques/04-agents.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ We'll be working with a couple of new concepts in order to build an AI agent in
2020

2121
> 🧑‍💻**Sample code**: We'll be working from the [AgentLabs-01-Simple sample](./src/AgentLabs-01-Simple/) for this lesson.
2222
>
23-
> We did include some more advanced samples in the `/src/` folder as well. You can view the README's of [AgentLabs-02-Functions](./src/AgentLabs-02-Functions/) or [AgentLabs-03-OpenAPIs](./src/AgentLabs-03-OpenAPIs/) or [AgentLabs-03-PythonParksInformationServer](./src/AgentLabs-03-PythonParksInformationServer/) for more info on them.
23+
> We also have more advanced agent examples:
24+
> - [AgentLabs-02-Functions](./src/AgentLabs-02-Functions/) - Showing how to create custom functions for your agents
25+
> - [AgentLabs-03-OpenAPIs](./src/AgentLabs-03-OpenAPIs/) - Demonstrating how agents can use OpenAPI specifications
26+
> - [AgentLabs-03-PythonParksInformationServer](./src/AgentLabs-03-PythonParksInformationServer/) - A Python server that works with the OpenAPI example
2427
2528
### Azure AI Agent Service
2629

03-CoreGenerativeAITechniques/06-AIToolkitAndDockerModels.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,39 @@ docker run -d -p 12434:8080 \
6060
deepseek-ai/deepseek-llm-7b-chat
6161
```
6262

63+
## Sample Code: Using AI Toolkit for Windows with .NET
64+
65+
The AI Toolkit for Windows provides a way to run AI models locally on Windows machines. We have two examples that demonstrate how to interact with AI Toolkit models using .NET:
66+
67+
### 1. Semantic Kernel with AI Toolkit
68+
69+
The [AIToolkit-01-SK-Chat](./src/AIToolkit-01-SK-Chat/) project shows how to use Semantic Kernel to chat with a model running via AI Toolkit for Windows.
70+
71+
```csharp
72+
// Example code demonstrating AI Toolkit with Semantic Kernel integration
73+
var builder = Kernel.CreateBuilder();
74+
// Configure to use a locally installed model through AI Toolkit
75+
builder.AddAzureOpenAIChatCompletion(
76+
modelId: modelId,
77+
endpoint: new Uri(endpoint),
78+
apiKey: apiKey);
79+
var kernel = builder.Build();
80+
// Create a chat history and use it with the kernel
81+
```
82+
83+
### 2. Microsoft Extensions for AI with AI Toolkit
84+
85+
The [AIToolkit-02-MEAI-Chat](./src/AIToolkit-02-MEAI-Chat/) project demonstrates how to use Microsoft Extensions for AI to interact with AI Toolkit models.
86+
87+
```csharp
88+
// Example code demonstrating AI Toolkit with MEAI
89+
OpenAIClientOptions options = new OpenAIClientOptions();
90+
options.Endpoint = new Uri(endpoint);
91+
ApiKeyCredential credential = new ApiKeyCredential(apiKey);
92+
// Create a chat client using local model through AI Toolkit
93+
ChatClient client = new OpenAIClient(credential, options).GetChatClient(modelId);
94+
```
95+
6396
## Sample Code: Using Docker Models with .NET
6497

6598
In this repository, we have two examples that demonstrate how to interact with Docker-based models using .NET:

0 commit comments

Comments
 (0)