in skills/text_to_sql/evaluation/vectordb.py [0:0]
def save_db(self):
with open(self.db_path, "wb") as file:
pickle.dump({"embeddings": self.embeddings, "metadata": self.metadata,
"query_cache": json.dumps(self.query_cache)}, file)