C# semantic ranking with Azure AI Search
This code sample provides the syntax for semantic search. It demonstrates an approach for adding a semantic configuration to a search index and query parameters to a query.
Semantic search is in public preview. Use the latest beta version of the client libraries to access this feature.
Prerequisites
- Visual Studio
- Azure AI Search service
- Azure.Search.Documents (beta version) and the Azure SDK for .NET
Set up the sample
- Clone or download this sample repository.
- Extract contents if the download is a zip file. Make sure the files are read-write.
- Get the service name and admin API key of your service. You can find this information in the Azure portal.
Run the sample
- Open the SemeanticSearchQuicksart.sln project in Visual Studio
- Open Program.cs.
- Replace the placeholder values for service name and admin API key with valid values for your search service.
- Compile and run the project.
Next steps
You can learn more about Azure AI Search on the official documentation site.