Currently, vector store automatically calls the embedding client to generate the document embedding without checking whether the document already had an embedding.
In this PR, I first check if the document doesn't already have an embedding before calling the client to generate an embedding. This prevents too many calls to generate an embedding.
Currently, vector store automatically calls the embedding client to generate the document embedding without checking whether the document already had an embedding.
In this PR, I first check if the document doesn't already have an embedding before calling the client to generate an embedding. This prevents too many calls to generate an embedding.