Hey guys,
- can we save query engines state so that we don't have to re-initialize it with the rerankers or the indexes?
Assume the index is in a vector store and not in memory.
Mendable tells this MLesque answer
import pickle
Assuming 'query_engine' is your initialized query engine
with open('query_engine.pkl', 'wb') as f:
pickle.dump(query_engine, f)
To load the query engine later
with open('query_engine.pkl', 'rb') as f:
loaded_query_engine = pickle.load(f)
which i am not sure correct...