examples/research_projects/rag-end2end-retriever/distributed_ray_retriever.py/RayRetriever/clear_object
class RayRetriever:    def clear_object(self):
        # delete the old self.retriever object before assigning the new index
        del self.retriever
        self.initialized = False