Skip to content

Base query

QuerySynthesizer dataclass

QuerySynthesizer(
    name: str = "",
    llm: BaseRagasLLM = llm_factory(),
    critic_query_prompt: PydanticPrompt = CriticUserInput(),
    query_modification_prompt: PydanticPrompt = ModifyUserInput(),
    generate_reference_prompt: PydanticPrompt = GenerateReference(),
)

Bases: BaseSynthesizer[Scenario]

Synthesizes Question-Answer pairs. Used as a base class for other query synthesizers.

Attributes:

Name Type Description
critic_query_prompt PydanticPrompt

The prompt used for criticizing the query.

query_modification_prompt PydanticPrompt

The prompt used for modifying the query.

generate_reference_prompt PydanticPrompt

The prompt used for generating the reference.