from ladder.engines import LLMEngine, VerificationEngine
from ladder.data_gen.schema import Problem
class GraphVerificationEngine(VerificationEngine):
def verify(self, problem: Problem) -> float:
"""Automated verification of LLM Solution"""
# Should return:
# - 1.0 if the solution is correct
# - 0.0 if it is incorrect
# in this base class we will be using the llm_engine to verify the solution , but u can override this for custom verification
# write here your custom verification function
llm_engine = LLMEngine(lm="openai/gpt-3.5-turbo")
verification_engine = GraphVerificationEngine(llm_engine=llm_engine)