Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate from scratch fixes #1321

Merged
merged 5 commits into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 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,6 +675,8 @@ 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
Loading