Sure you could but now you have two identical models running in the browser, one of which needs to be loaded in.
Ideally they would expose the model via a browser api like they do for the prompt api.
FWIW I asked someone on the chrome team about this and they don’t plan to expose native embedding APIs citing lack of dimensionality standards as the reason.
Ideally they would expose the model via a browser api like they do for the prompt api.
FWIW I asked someone on the chrome team about this and they don’t plan to expose native embedding APIs citing lack of dimensionality standards as the reason.