So that we can rely on Embedding objects being present when we're building backends, this makes Documents have an embedding_pk field which is populated by the Converter.
This also changes all backends so that they return a Document which will retain that reference back to the Embedding.
There's probably more we can do here to enforce this, but this is a starting point.
So that we can rely on Embedding objects being present when we're building backends, this makes Documents have an embedding_pk field which is populated by the Converter.
This also changes all backends so that they return a Document which will retain that reference back to the Embedding.
There's probably more we can do here to enforce this, but this is a starting point.