Currently, I have two relevant Documents, Embeddings and Employees:
- Employees can have a lot of Embeddings related to them
- Embeddings can have multiple Employees related to them.
My use-case is that I need to query Employees by Embedding IDs. So I receive a list of Embedding IDs and I need to get all the related employees from the DB.
My first thought was to store a list of Employee ID's in the Embedding documents. The issue I'm having there is that Employees of course can leave a company so in that case, I would get not found errors...
The other option I see is to reference Employees in the Embedding documents but in the case where an employee is related to a large set of Embeddings, it would also not be ideal...
Is there a best practice in a many-to-many scenario like this?