How to save and load document store with embeddings? #1685
-
In tutorial 12 (LFQA) section: Initalize Retriever and Reader/Generator do you always have to update embeddings? This is very time consuming. Is not it possible to retain embeddings or a way to store embeddings to be used next time? I ran the notebook and then shut it down and immediately ran it again (without running the 'update embedding line') and this does not work. Kindly guide how this (storing embeddings) can be achieved and recall them next time without invoking the line. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
There is save and load method in document store, kindly add a code below to use them, thank you. |
Beta Was this translation helpful? Give feedback.
-
What about ElasticsearchDocumentStore? It doesn't have save/load methods, as I see in the API reference. It would be nice to save calculated embedding for documents. |
Beta Was this translation helpful? Give feedback.
-
Hai @ZanSara , I am trying to run the Table QA system locally(in jupyter notebooks). I am running dockerized elastic search container. |
Beta Was this translation helpful? Give feedback.
-
There is no way to reliably load and query a Pinecone index as well. This is frustrating. |
Beta Was this translation helpful? Give feedback.
I was unable to recreate the Pinecone issue. Might have been something to do with my initialisation configuration being different to the one originally used to index my documents.