response_generator = dspy.ReAct( ResponseGenerator, tools=[fetch_similar_memories], max_iters=4 )