From 4bc50f4b9e4c22e088ad4c8025acee190935c439 Mon Sep 17 00:00:00 2001 From: jjmachan Date: Fri, 13 Dec 2024 21:46:01 +0530 Subject: [PATCH] style: ci fixes --- src/ragas/optimizers/genetic.py | 5 ++--- tests/e2e/test_langchain_llm_attributes.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ragas/optimizers/genetic.py b/src/ragas/optimizers/genetic.py index eb0327b27..d999a2879 100644 --- a/src/ragas/optimizers/genetic.py +++ b/src/ragas/optimizers/genetic.py @@ -519,9 +519,8 @@ def dict_to_str(dict: t.Dict[str, t.Any]) -> str: ), expected_output=dataset[idx]["prompts"][prompt_name][ "edited_output" - ] or dataset[idx]["prompts"][prompt_name][ - "prompt_output" - ], + ] + or dataset[idx]["prompts"][prompt_name]["prompt_output"], ) for idx in indices ] diff --git a/tests/e2e/test_langchain_llm_attributes.py b/tests/e2e/test_langchain_llm_attributes.py index 03dceb6b2..5a9497470 100644 --- a/tests/e2e/test_langchain_llm_attributes.py +++ b/tests/e2e/test_langchain_llm_attributes.py @@ -3,7 +3,7 @@ from langchain_aws import ChatBedrock, ChatBedrockConverse from langchain_google_genai import ChatGoogleGenerativeAI from langchain_google_vertexai import ChatVertexAI -from langchain_openai import AzureChatOpenAI, ChatOpenAI +from langchain_openai import ChatOpenAI models = [ ChatOpenAI(model="gpt-4o"),