Skip to content

Commit 7e0794f

Browse files
Changes updated
1 parent a3c5a60 commit 7e0794f

File tree

3 files changed

+8
-61
lines changed

3 files changed

+8
-61
lines changed

MAUI/Autocomplete/AI-Powered-Smart-Searching.md

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -43,38 +43,8 @@ In the `GetCompletion` method, we will construct the prompt and send it to the A
4343

4444
public AzureBaseService()
4545
{
46-
ValidateCredential();
4746
}
4847
49-
private async void ValidateCredential()
50-
{
51-
this.GetAzureOpenAIKernal();
52-
53-
if (isAlreadyValidated)
54-
{
55-
return;
56-
}
57-
58-
try
59-
{
60-
if (Client != null)
61-
{
62-
await Client!.CompleteAsync("Hello, Test Check");
63-
ChatHistory = string.Empty;
64-
IsCredentialValid = true;
65-
isAlreadyValidated = true;
66-
}
67-
else
68-
{
69-
ShowAlertAsync();
70-
}
71-
}
72-
catch (Exception)
73-
{
74-
return;
75-
}
76-
}
77-
7848
/// <summary>
7949
/// To get the Azure open ai kernal method
8050
/// </summary>
@@ -210,7 +180,7 @@ The logic within [Autocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.M
210180
To get accurate and structured results from the AI, we must provide a detailed prompt. This is constructed inside the
211181
`FilterCountriesUsingAzureAI` method.
212182

213-
The `FilterCountriesUsingAzureAI` method uses prompt engineering to instruct the AI on how to filter the results, including asking it to handle spelling mistakes and providing the response in a clean, parsable format.
183+
The `FilterCountriesUsingAzureAI` method uses prompt engineering to instruct the AI on how to filter the results, including asking it to handle spelling mistakes and providing the response in a clean format.
214184

215185
{% tabs %}
216186
{% highlight c# %}
@@ -336,7 +306,7 @@ public class CustomFilter : IAutocompleteFilterBehavior
336306

337307
{% endtabs %}
338308

339-
**Step:3** Applying Custom Filtering to AutoComplte
309+
**Step:3** Applying Custom Filtering to AutoComplete
340310

341311
Applying custom filtering to the [Autocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfAutocomplete.html) control by using the `FilterBehavior` property.
342312

@@ -363,4 +333,6 @@ The following image demonstrates the output of the above AI-based search using a
363333

364334
![.NET MAUI AutoComplete With AI Smart Search.](Images/AISmartSearch/ai_smart_search.png)
365335

336+
You can find the complete sample from this [link](https://github.com/SyncfusionExamples/Smart-AI-Searching-using-.NET-MAUI-Autocomplete).
337+
366338
By combining a powerful AI-driven online search with a robust you can create a truly smart and reliable search experience in your .NET MAUI applications.

MAUI/ComboBox/AI-Powered-Smart-Searching.md

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -43,36 +43,7 @@ In the `GetCompletion` method, we will construct the prompt and send it to the A
4343

4444
public AzureBaseService()
4545
{
46-
ValidateCredential();
47-
}
48-
49-
private async void ValidateCredential()
50-
{
51-
this.GetAzureOpenAIKernal();
52-
53-
if (isAlreadyValidated)
54-
{
55-
return;
56-
}
5746

58-
try
59-
{
60-
if (Client != null)
61-
{
62-
await Client!.CompleteAsync("Hello, Test Check");
63-
ChatHistory = string.Empty;
64-
IsCredentialValid = true;
65-
isAlreadyValidated = true;
66-
}
67-
else
68-
{
69-
ShowAlertAsync();
70-
}
71-
}
72-
catch (Exception)
73-
{
74-
return;
75-
}
7647
}
7748

7849
/// <summary>
@@ -346,4 +317,6 @@ The following image demonstrates the output of the above AI-based search using a
346317

347318
![.NET MAUI Combobox With AI Smart Search.](Images/AISearch/ai_smart_search.png)
348319

320+
You can find the complete sample from this [link.
321+
349322
By combining a powerful AI-driven online search with a robust you can create a truly smart and reliable search experience in your .NET MAUI applications.

maui-toc.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@
210210
<li><a href="/maui/Autocomplete/No-Results-Found">No Results Found</a></li>
211211
<li><a href="/maui/Autocomplete/Maximum-display-item-with-Expander">Maximum display item with Expander</a></li>
212212
<li><a href="/maui/Autocomplete/UI-Customization">UI Customization</a></li>
213+
<li><a href="/maui/Autocomplete/AI-Powered-Smart-Searching">AI-Powered-Smart-Searching</a></li>
213214
</ul>
214215
</li>
215216
<li>
@@ -524,6 +525,7 @@
524525
<li><a href="/maui/ComboBox/No-Results-Found">No Results Found</a></li>
525526
<li><a href="/maui/ComboBox/Maximum-display-item-with-Expander">Maximum display item with Expander</a></li>
526527
<li><a href="/maui/ComboBox/UI-Customization">UI Customization</a></li>
528+
<li><a href="/maui/ComboBox/AI-Powered-Smart-Searching">AI-Powered-Smart-Searching</a></li>
527529
</ul>
528530
</li>
529531
<li>

0 commit comments

Comments
 (0)