Typically applications already have domain objects at hand and it would increase DX to simply use that for Embedder instead of our document classes, see https://github.com/symfony/ai/blob/main/examples/store/mongodb-similarity-search.php