Saving and Loading embeddings in elasticsearch document store #4728
-
Hai, I am trying to update embeddings of approximately 4000 documents in the elastic search document store using the below command. document_store.update_embeddings(retriever=retriever, update_existing_embeddings=False) I am running it in my local system(jupyter notebook). I am using a docker container for elastic search. Updating embeddings is taking hours to run. Is there a method to save and load the embeddings the subsequent times. Requesting help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Maybe this comment answers your questions. |
Beta Was this translation helpful? Give feedback.
-
Hey @anakin87 I've seen the comment. Does the comment mean that it will not take the same amount of time the next time I run the "document_store.update_embeddings(retriever=retriever, update_existing_embeddings=False)"? |
Beta Was this translation helpful? Give feedback.
-
Thank you @anakin87, got it. |
Beta Was this translation helpful? Give feedback.
I think you are right.
Furthermore, if you reload the same document store (already containing embeddings), you don't need to call
update_embeddings
, unless you have new documents to encode.