Making a trigger so that when a document is updated , inserted , replaced the embeddings of it is updated/added

Im not sure I follow, but the way the trigger works is that when something happens to the data, then the function fires. So if you can cause the data to be updated such that the function runs with the proper input and then link to log of that happening, that would be helpful.