I have an optimization algorithm deployed as a live deployment. It takes a set of objects and returns a set of objects with potentially different size. This works just fine when I'm using the REST api.
The problem is, I want to let the user of the workshop app query the model with a set of objects. The returned objects need to be written back to the ontology.
- I looked into an action backed function but it seems like I can't query the model from a function?!
- I looked into webhooks but it seems to not fit the purpose and I also would need to handle the API key and can't write back to the ontology?!
- I know how to query the model with scenarios but it is per sample and that does not fit the purpose, plus I cant write back to the ontology.
My questions:
- Is there any way to call the model from a function and write the return back to the ontology?
- Is there any way to call a model from workshop with a set of objects and write back to the ontology?
- Is modeling objectives just the wrong place for this usecase?
- Do I need to implement the optimization in Functions itself?
I answered the questions, as well I tried to address some of the earlier points.