Skip to content

Commit

Permalink
private context
Browse files Browse the repository at this point in the history
  • Loading branch information
kritinv committed Sep 25, 2024
1 parent 916e8bd commit 4caab87
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions deepeval/synthesizer/synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def generate_goldens_from_docs(
source_files,
evolutions=evolutions,
use_case=use_case,
context_scores=context_scores,
_context_scores=context_scores,
_progress_bar=progress_bar,
_send_data=False,
)
Expand Down Expand Up @@ -235,7 +235,7 @@ async def a_generate_goldens_from_docs(
source_files=source_files,
evolutions=evolutions,
use_case=use_case,
context_scores=context_scores,
_context_scores=context_scores,
_progress_bar=progress_bar,
)
self.synthetic_goldens.extend(goldens)
Expand All @@ -262,7 +262,7 @@ def generate_goldens(
Evolution.IN_BREADTH: 1 / 7,
},
use_case: UseCase = UseCase.QA,
context_scores: Optional[List[float]] = None,
_context_scores: Optional[List[float]] = None,
_progress_bar: Optional[tqdm.std.tqdm] = None,
_send_data: bool = True,
) -> List[Golden]:
Expand Down Expand Up @@ -325,7 +325,7 @@ def generate_goldens(
additional_metadata={
"evolutions": evolutions_used,
"synthetic_input_quality": scores[j],
"context_quality": context_scores[i] if context_scores is not None else None
"context_quality": _context_scores[i] if _context_scores is not None else None
},
)

Expand Down Expand Up @@ -402,7 +402,7 @@ async def a_generate_goldens(
Evolution.IN_BREADTH: 1 / 7,
},
use_case: UseCase = UseCase.QA,
context_scores: Optional[List[float]] = None,
_context_scores: Optional[List[float]] = None,
_progress_bar: Optional[tqdm.std.tqdm] = None,
) -> List[Golden]:
goldens: List[Golden] = []
Expand All @@ -427,7 +427,7 @@ async def a_generate_goldens(
index=index,
evolutions=evolutions,
progress_bar=progress_bar,
context_scores=context_scores
context_scores=_context_scores
)
for index, context in enumerate(contexts)
]
Expand Down

0 comments on commit 4caab87

Please sign in to comment.