-
Book Overview & Buying
-
Table Of Contents
Blazor WebAssembly by Example - Third Edition
By :
You have implemented a SmartComboBox that leverages an AI model to provide smart suggestions from a list of items.
This chapter introduced the core ideas behind using machine learning in a Blazor WebAssembly app. You learned about tokenization, training vs inference, embeddings, and cosine similarity. You learned how to load an AI model into a stand-alone web app. You learned how an AI model can be loaded and invoked from JavaScript and then consumed via JS interop in C# to power intelligent UI behavior.
The project put these ideas into practice by building an AI-powered reusable SmartComboBox component and integrating it into a simple expense tracker. You added an ONNX service, implemented the SmartComboBox with debounced semantic matching and then used it in a simple expense tracker to classify user-entered expenses by meaning.
A web app built using Blazor WebAssembly can run entirely offline. In the next chapter, we will leverage this advantage to create a progressive web app...