You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a complete set of working .NET examples, see the [Kafka extension repository](https://github.com/Azure/azure-functions-kafka-extension/blob/dev/samples/dotnet/Confluent/).
51
51
52
52
# [Event Hubs](#tab/event-hubs/in-process)
53
53
54
54
The following example shows a C# function that sends a single message to a Kafka topic, using data provided in HTTP GET request.
For a complete set of working .NET examples, see the [Kafka extension repository](https://github.com/Azure/azure-functions-kafka-extension/blob/dev/samples/dotnet/EventHub).
67
67
68
68
# [Confluent](#tab/confluent/isolated-process)
69
69
70
70
The following example has a custom return type that is `MultipleOutputType`, which consists of an HTTP response and a Kafka output.
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-openai-textcompletion-input.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,11 +68,11 @@ The code simply returns the text from the completion API as the response:
68
68
::: zone pivot="programming-language-python"
69
69
This example demonstrates the _templating_ pattern, where the HTTP trigger function takes a `name` parameter and embeds it into a text prompt, which is then sent to the Azure OpenAI completions API by the extension. The response to the prompt is returned in the HTTP response.
| South Central US | :::image type="icon" source="media/yes-icon.svg" border="false"::: ||||:::image type="icon" source="media/yes-icon.svg" border="false"::: |
Copy file name to clipboardExpand all lines: articles/search/search-get-started-portal-image-search.md
+14-17Lines changed: 14 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Quickstart image search
3
3
titleSuffix: Azure AI Search
4
-
description: Index and query images on Azure AI Search using the Azure portal. Run the Import and vectorize data wizard to vectorize images. Use Search Explorer to query images.
4
+
description: Search for images on Azure AI Search index using the Azure portal. Run the Import and vectorize data wizard to vectorize images, then use Search Explorer to provide an image as your query input.
5
5
6
6
author: HeidiSteen
7
7
ms.author: heidist
@@ -100,13 +100,14 @@ Azure AI Vision provides text embeddings, so we'll use that resource for text ve
100
100
101
101
Use Azure AI Vision to generate a vector representation of the image files.
102
102
103
-
In this step, you can also apply AI to extract text from images. The wizard uses OCR from Azure AI services to recognize text in image files. Two more outputs appear in the index when OCR is added to the workflow:
103
+
In this step, you can also apply AI to extract text from images. The wizard uses OCR from Azure AI services to recognize text in image files.
104
104
105
-
+ First, the "chunk" field is populated with the OCR-generated string.
105
+
Two more outputs appear in the index when OCR is added to the workflow:
106
106
107
-
+ Second, the "text_vector" field is populated with an embedding that represents the string.
107
+
+ First, the "chunk" field is populated with an OCR-generated string of any text found in the image.
108
+
+ Second, the "text_vector" field is populated with an embedding that represents the "chunk" string.
108
109
109
-
The inclusion of plain text in an index is useful if you want to use relevance features that operate on strings, such as semantic ranking and scoring profiles.
110
+
The inclusion of plain text in the "chunk" field is useful if you want to use relevance features that operate on strings, such as [semantic ranking](semantic-search-overview.md) and [scoring profiles](index-add-scoring-profiles.md).
110
111
111
112
1. On the **Vectorize your images** page, select the **Vectorize images** checkbox, and then select **AI Vision vectorization**.
112
113
@@ -136,27 +137,23 @@ The inclusion of plain text in an index is useful if you want to use relevance f
136
137
137
138
1. Select **Create** to run the wizard. This step creates the following objects:
138
139
139
-
+Data source connection to blob storage.
140
+
+An indexer that drives the indexing pipeline.
140
141
141
-
+Index with vector fields, text fields, vectorizers, vector profiles, vector algorithms. You can't modify the default index during the wizard workflow. Indexes conform to the [2024-05-01-preview REST API](/rest/api/searchservice/indexes/create-or-update?view=rest-searchservice-2024-05-01-preview&preserve-view=true).
142
+
+A data source connection to blob storage.
142
143
143
-
+Skillset with the following five skills:
144
+
+An index with vector fields, text fields, vectorizers, vector profiles, vector algorithms. You can't modify the default index during the wizard workflow. Indexes conform to the [2024-05-01-preview REST API](/rest/api/searchservice/indexes/create-or-update?view=rest-searchservice-2024-05-01-preview&preserve-view=true).
144
145
145
-
+[OCR skill](cognitive-search-skill-ocr.md) recognizes text in image files.
146
+
+ A skillset with the following five skills:
146
147
148
+
+[OCR skill](cognitive-search-skill-ocr.md) recognizes text in image files.
147
149
+[Text Merger skill](cognitive-search-skill-textmerger.md) unifies the various outputs of OCR processing.
148
-
149
150
+[Text Split skill](cognitive-search-skill-textsplit.md) adds data chunking. This skill is built into the wizard workflow.
150
-
151
151
+[Azure AI Vision multimodal](cognitive-search-skill-vision-vectorize.md) is used to vectorize text generated from OCR.
152
-
153
152
+[Azure AI Vision multimodal](cognitive-search-skill-vision-vectorize.md) is called again to vectorize images.
154
153
155
-
+ Indexer with field mappings and output field mappings.
156
-
157
154
## Check results
158
155
159
-
Search explorer accepts text, vectors, and images as query inputs. You can drag or select an image into the search area, and it will be vectorized for search. Image vectorization assumes that your index has a vectorizer definition, which **Import and vectorize data** creates from your inputs.
156
+
Search Explorer accepts text, vectors, and images as query inputs. You can drag or select an image into the search area. Search Explorer vectorizes your image and sends the vector as a query input to the search engine. Image vectorization assumes that your index has a vectorizer definition, which **Import and vectorize data** creates based on your embedding model inputs.
160
157
161
158
1. In the Azure portal, under **Search Management** and **Indexes**, select the index your created. An embedded Search Explorer is the first tab.
162
159
@@ -170,11 +167,11 @@ Search explorer accepts text, vectors, and images as query inputs. You can drag
170
167
171
168
:::image type="content" source="media/search-get-started-portal-images/image-search.png" alt-text="Screenshot of search results.":::
172
169
173
-
The top match should be the image you searched for. Because a vector search matches on similar vectors, the search engine returns any document that is sufficiently similar to the query input. You can switch to JSON view for more advanced queries that include relevance tuning.
170
+
The top match should be the image you searched for. Because a [vector search](vector-search-overview.md) matches on similar vectors, the search engine returns any document that is sufficiently similar to the query input, up to *k*-number of results. You can switch to JSON view for more advanced queries that include relevance tuning.
174
171
175
172
1. Try other query options to compare search outcomes:
176
173
177
-
+ Hide vectors for more readable results.
174
+
+ Hide vectors for more readable results (recommended).
178
175
+ Select a vector field to query over. The default is text vectors, but you can specify the image vector to exclude text vectors from query execution.
| [Image search in the Azure portal](search-get-started-portal-image-search.md) | Feature | Search explorer now supports image search. In a vector index that has vectorized image content, you can drop images into Search Explorer to query for matching image content.
26
+
| [Image search in the Azure portal](search-get-started-portal-image-search.md) | Feature | Search explorer now supports image search. In a vector index that has vectorized image content, you can drop images into Search Explorer to query for a match.
0 commit comments