Skip to content

Commit

Permalink
Revert "generate from scratch fixes"
Browse files Browse the repository at this point in the history
This reverts commit 85731e3.
  • Loading branch information
kritinv committed Jan 28, 2025
1 parent 85731e3 commit 58de748
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions deepeval/synthesizer/synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 58de748

Please sign in to comment.