Skip to main content

Posts

Showing posts from 2025

Use text embeddings within Semantic Kernel and Ollama

In a previous post I showed you how to use Semantic Kernel, Ollama and Qdrant to generate and store vector embeddings. Doing this doesn't make much sense if we don't look at a way to expose and use this data. In this post I'll show you how to query the vector store to search for results. Remark: If you missed the previous post, go check it out first. Let’s dive in… We start by having a look again at the model we were using: First important thing to notice is that we can decided which properties should be used when querying the vector store. This is useful when we have multiple vectors stored in the data model. If we don’t specify the vector property, the first vector found will be used when querying. (In our example we only have one vector property so in theory we could ignore this). Let’s do a first search: Remark: Notice that we need to use the Property name not the name configured in the store or attribute. Most vector stores also support the concept o...

Adding vision to Github Copilot

Today I want to show you how to use the Vision for Copilot Preview extension to add vision to your Github Copilot chat in VS Code. Let’s dive in… We start by installing the Vision for Copilot Preview extension in VSCode: Remark: This extension will be eventually deprecated in favor of built-in image flow in Github Copilot Chat. At the moment of writing, the extension doesn’t use the existing model integration yet. Instead you need to configure a connection with either OpenAI, Azure OpenAI, Anthropic, or Gemini yourself. Open the Azure Portal and go to https://ai.azure.com/ . Click on Deployments: Select one of your deployments and copy the full target URI:   Now go to the extension settings in VS Code for the Vision extension and paste the URI to your Azure OpenAI endpoint: We also need to paste in the corresponding API key. Therefore, run the "Copilot Vision: Set Current Model's API Key" command and paste the key from Azure OpenAI Studio: Once that is d...