From a29d7cb96130d83eda5032b054e81e4e0079296b Mon Sep 17 00:00:00 2001 From: CG80499 Date: Mon, 25 Sep 2023 13:30:44 +0000 Subject: [PATCH] remove testing file --- libs/langchain/test.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 libs/langchain/test.py diff --git a/libs/langchain/test.py b/libs/langchain/test.py deleted file mode 100644 index 72a68d80a56..00000000000 --- a/libs/langchain/test.py +++ /dev/null @@ -1,18 +0,0 @@ -from dotenv import load_dotenv - -from langchain.chat_models import ChatOpenAI -from langchain.evaluation.comparison.llm_as_a_judge import LLMAsAJudgePairwiseEvalChain - -load_dotenv() - -llm = ChatOpenAI(temperature=0, model="gpt-4") - -evaluator = LLMAsAJudgePairwiseEvalChain.from_llm(llm=llm) - -e = evaluator.evaluate_string_pairs( - prediction="The chemical formula for water is H2O, which means there are two hydrogen atoms and one oxygen atom", - prediction_b="The chemical formula for water is H2O.", - input="What is the chemical formula for water?", -) - -print(e)