Skip to content

Commit

Permalink
Merge pull request #1320 from kritinv/context_generator
Browse files Browse the repository at this point in the history
delete .vector_db folder if chunking is unsuccesful
  • Loading branch information
penguine-ip authored Jan 28, 2025
2 parents b8b5060 + 58de748 commit 03ba42b
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 03ba42b

Please sign in to comment.