Llm, Prompt Engineering, Langchain, Llmops, Heartbeat.
langchain.evaluation import StringDistanceEvalChain evaluator = StringDistanceEvalChain(value='indel') evaluator.evaluate_strings( prediction="My name is Harpreet, and I love to learn LangChain", reference="Harpreet loves learning langchain", ) # {'score': 0.31919191919191914} Embedding Distance To