langchain/vectorstores/sklearn.py/BsonSerializer/save
class BsonSerializer:    def save(self, data: Any) -> None:
        with open(self.persist_path, "wb") as fp:
            fp.write(self.bson.dumps(data))