instantiating SemanticSettings is causing a build error in web app

42 views Asked by At

The following line of code is causing a build error:

SemanticSettings semanticSettings = new SemanticSettings();

This came from Quickstart: semantic ranking - Azure AI Search | Microsoft Learn

I was able to follow the tutorial but when I copied the code into my web app it would not compile. Any idea why? I’ve attached the file I’m editing as well as the build log file.

Thanks in advance for your help.

Kenneth

1

There are 1 answers

1
Kenneth On

Microsoft support confirmed that they needed to update their code and help documentation. The thread can be found at https://learn.microsoft.com/en-us/answers/questions/1466163/instantiating-semanticsettings-is-causing-a-build?comment=question#comment-1467117