Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions deepeval/synthesizer/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class ContextConstructionConfig:
context_quality_threshold: float = 0.5
context_similarity_threshold: float = 0.0
max_retries: int = 3
allow_cross_file_contexts: bool = False
target_files_per_context: Optional[int] = None

def __post_init__(self):
self.critic_model, _ = initialize_model(self.critic_model)
Expand Down
3 changes: 2 additions & 1 deletion deepeval/synthesizer/schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Literal
from typing import List, Literal, Optional
from pydantic import BaseModel


Expand All @@ -13,6 +13,7 @@ class InputFeedback(BaseModel):

class SyntheticData(BaseModel):
input: str
used_source_files: Optional[List[str]] = None


class SyntheticDataList(BaseModel):
Expand Down
Loading
Loading