confident-ai/deepeval
View on GitHubFeat request: optional user-defined prompt builder for synthesizer
Open
#2,396 opened on Dec 26, 2025
enhancementhelp wanted
Repository metrics
- Stars
- (16,939 stars)
- PR merge metrics
- (PR metrics pending)
Description
It could be useful to give users flexibility over the user prompt used to generate the goldens in the synthesizer.
generate_goldens_from_contexts and a_generate_goldens_from_contexts may be overridden when inheriting from the Synthesizer class and rely on predefined prompt templates composed from specific arguments context, max_goldens_per_context, scenario, task, input_format
which are passed into the synthetic inputs. Does it make sense to add an optional prompt builder argument and allow the user to construct the prompt for golden generation?
prompt_builder: Optional[Callable[..., str | Prompt]]