
Answer-first summary for fast verification
Answer: Create a separate service that interacts with the model and exposes its functionality to the client application.
Creating a separate service that interacts with the model and exposes its functionality to the client application is a more scalable and maintainable approach. It allows for better separation of concerns and makes it easier to update or replace the model without affecting the client application. Directly integrating the model using its API (Option A) could result in tight coupling between the model and the client application. Using a third-party library (Option C) may not provide the necessary control or customization. Manually parsing the model's output (Option D) would be time-consuming and error-prone.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have deployed a language understanding model and want to consume it from a client application. Which of the following approaches would you use to achieve this?
A
Directly integrate the model into the client application using its API.
B
Create a separate service that interacts with the model and exposes its functionality to the client application.
C
Use a third-party library to interact with the model and integrate it into the client application.
D
Manually parse the model's output and implement the logic to handle user intents and entities in the client application.
No comments yet.