The same interface can use different places to do its work. Ask where the model runs and where the input and retrieved documents go.
On the device
A model stored on a phone or computer can run locally. When inputs and tools also stay local, inference can work without a network. Model size, available memory and batteries constrain the experience.
In the cloud
The app sends a request to a remote service that can use larger models or more accelerators. Network and queue time affect the wait. The service’s handling of input matters.
Across both
A local component might classify or redact a request while a remote model handles a more demanding task. The boundary depends on the application.