From 58de748e9a2d6e55233ecd6db992056e49976929 Mon Sep 17 00:00:00 2001 From: Kritin_Vongthongsri Date: Mon, 27 Jan 2025 23:39:04 -0800 Subject: [PATCH] Revert "generate from scratch fixes" This reverts commit 85731e320d599dff32d3c51fd21f07774dc0ad05. --- deepeval/synthesizer/synthesizer.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deepeval/synthesizer/synthesizer.py b/deepeval/synthesizer/synthesizer.py index 601e294c..e624e964 100644 --- a/deepeval/synthesizer/synthesizer.py +++ b/deepeval/synthesizer/synthesizer.py @@ -133,7 +133,7 @@ def generate_goldens_from_docs( # Generate contexts from provided docs if self.context_generator is None: self.context_generator = ContextGenerator( - document_paths=document_paths, + document_paths, embedder=context_construction_config.embedder, chunk_size=context_construction_config.chunk_size, chunk_overlap=context_construction_config.chunk_overlap, @@ -193,7 +193,7 @@ async def a_generate_goldens_from_docs( # Generate contexts from provided docs if self.context_generator is None: self.context_generator = ContextGenerator( - document_paths=document_paths, + document_paths, embedder=context_construction_config.embedder, chunk_size=context_construction_config.chunk_size, chunk_overlap=context_construction_config.chunk_overlap, @@ -675,8 +675,6 @@ def transform_distribution( ) -> Dict[PromptEvolution, float]: prompt_evolutions: Dict[PromptEvolution, float] = {} for evo, weight in evolutions.items(): - if evo == Evolution.MULTICONTEXT: - continue prompt_evolution = self.map_evolution_to_prompt_evolution(evo) prompt_evolutions[prompt_evolution] = weight return prompt_evolutions