To expose AI services to our system, we need an API that can be called by internal system.
The contract of this API is as follows:
POST ai/providers/<name>/embedding
Expected parameters:
Record as json body
Output
Array of float (vector) with size equal to dimensions. The vector is normalized
Ex.
{ "Embedding": [ -0.006929283495992422, -0.005336422007530928, ... (omitted for spacing) -4.547132266452536e-05, -0.024047505110502243 ] }
POST ai/providers/<name>/describe
Expected parameters:
Record as json body
Output
Textual string
Ex.
{ "Description": This is an image of a cat"}