Posts

Azure AI Search Solution

Image
  Optimize Performance of an Azure AI Search Solution The size and complexity of your indexes may affect search solutions’ performance. Additionally, You also need to know how to write efficient queries to search it and choose the right service tier. Measure Your Current Search Performance If you don't know how well your search service works, you can't optimize. Establish a baseline performance benchmark so you can verify the advancements you achieve and monitor any decline in performance over time. To start with, enable diagnostic logging using Log Analytics: In the Azure portal, select Diagnostic settings. Give your diagnostic setting a name. Select allLogs and AllMetrics. Select Send to Log Analytics workspace. Choose, or create, your Log Analytics workspace. This diagnostic data must be recorded at the search service level. Your end users or apps may experience performance problems in a number of locations. If you can demonstrate that your search service is operating effici...

Maintain an Azure AI Search Solution (Part 2)

Image
  Authenticate Requests To Your Search Solution Your attention may go to how to verify search requests from your users and apps once you have the infrastructure in place to lessen the attack surface of your search solution. Key-based authentication is the default setting when you set up your ACS. There are two different kinds of keys: Admin Keys - grant write permissions and the right to query system information (maximum of 2 admin keys can be created per search service) Query Keys - grant read permissions and are used by your users or apps to query indexes (maximum of 50 query keys can be created per search service) Role-based access control (RBAC) is provided by the Azure platform as a global system to control access to resources. You can use RBAC in Azure AI Search in the following ways: Roles can be granted access to administer the service Define roles with access to create, load, and query indexes The built-in roles you can assign to manage the Azure AI Search serv...

Maintain an Azure AI Search Solution (Part 1)

Image
  Introduction Understanding how to manage Azure AI Search's two core workloads, indexing and querying, is essential to running a successful solution. The search solution must be as economical as feasible. Manage Security Of an Azure AI Search Solution Businesses must be able to rely on their search solutions' security. You have control over the security of the data you search for with Azure AI Search. Overview Of Security Approaches AI Search security builds on Azure's existing network security features. When you think about securing your search solution, you can focus on three areas: Inbound search requests made by users to your search solution Outbound requests from your search solution to other servers to index documents Restricting access at the document level per user search request Data Encryption Like all Azure services, the Azure AI Search service uses service controlled keys to encrypt the data it stores while it's at rest. Indexes, data sources, synonym maps,...

Azure AI Search Push API

Image
  Index Any Data Using Azure AI Search Push API The most adaptable method for adding data to an Azure AI Search index is the REST API. Any programming language or interactive application that can send JSON requests to an endpoint can be used. Supported REST API Operations There are two supported REST APIs provided by AI Search- Search and management APIs. How To Call Search REST API ? If you want to call any of the search APIs you need to: Use the HTTPS endpoint provided by your search service, you must include an api-version in the URI. The request header must include an api-key attribute. To find the endpoint, api-version, and api-key go to the Azure portal. In the portal, navigate to your search service, then select Search explorer. Choose Keys to locate the api-key on the left. If you're doing more than just accessing the index with the REST API, you can use either the primary or secondary admin key. You can make and use query keys if you only need to search an index. An a...

Azure Data Factory

Image
  Index Data From External Data Sources Using Azure Data Factory An organization's search solution frequently has to include external data that isn't stored in Azure. Because it offers numerous methods for creating and pushing data into indexes, Azure AI Search is adaptable. Push Data Into Search Index Using Azure Data Factory (ADF) One method is to use ADF to push data into an index using a zero-code option. Almost 100 distinct data stores are connected to ADF. You can link an infinite number of data stores using connectors like HTTP and REST. These data stores are utilized in pipelines as either a source or a target (referred to as sinks). In a copy activity, the Azure AI Search index connector can be utilized as a sink. Create ADF Pipeline To Push Data Into Search Index The steps you need to take to use and ADF pipeline to push data into a search index are: Create an Azure AI Search index with all the fields you want to store data in. Create a pipeline with a copy data step....

Azure Machine Learning Custom Skill for Azure AI Search

Image
  How To Use Custom Azure Machine Learning Skillset ? You can create robust AI models and host them on Azure using Azure Machine Learning. The endpoints of these AI models can be utilized in search strategies to improve indexes. Adding a machine learning custom skill to a search index functions in the same way as adding any other custom talent. Custom Azure Machine Learning Skill Schema An Azure Machine Learning (AML) custom skill enriches a search index at the document level. Your document indexer must have an AmlSkill in its skill set. Note that batchSize options are not included in the custom skill. One document at a time will be processed by the AML model. The remaining parameters, timeout and degree of parallelism, regulate how the skill is performed. The timeout value in the aforementioned schema is set at 30 seconds. One should be the starting point for the degree of parallelism. You may be able to raise this figure, depending on your infrastructure. Scaling up the Kubernet...

Improve Search Experience

Image
  Improve Search Experience By Ordering Results By Distance From a Given Reference Point Users frequently wish to look for products connected to a specific area. For instance, they may want to locate the coffee shop closest to their location. AI Search has geospatial features that you can use in queries to compare locations on the surface of the Earth. What are Geo-Spatial Functions? The hotel's location is a crucial factor to take into account when making a reservation. For instance, you will want a hotel close to the Eiffel Tower if you're planning a trip to view it. To ask AI Search to return results based on their location information, you can use two functions in your query: geo.distance - This function returns the distance in a straight line across the Earth's surface from the point you specify to the location of the search result. geo.intersects - This function returns true if the location of a search result is inside a polygon that you specify. Make sure the locat...