Base
QueryLength
Bases: str
, Enum
Enumeration of query lengths. Available options are: LONG, MEDIUM, SHORT
QueryStyle
Bases: str
, Enum
Enumeration of query styles. Available options are: MISSPELLED, PERFECT_GRAMMAR, POOR_GRAMMAR, WEB_SEARCH_LIKE
BaseScenario
Bases: BaseModel
Base class for representing a scenario for generating test samples.
Attributes:
Name | Type | Description |
---|---|---|
nodes |
List[Node]
|
List of nodes involved in the scenario. |
style |
QueryStyle
|
The style of the query. |
length |
QueryLength
|
The length of the query. |
BaseSynthesizer
dataclass
BaseSynthesizer(
name: str = "", llm: BaseRagasLLM = llm_factory()
)