agents.rag.common.document_graders.modelsΒΆ
RAG Structured Output Models.
Pydantic models for structured outputs from RAG evaluation agents.
ClassesΒΆ
Binary pass/fail document grading. |
|
Response for binary document grading. |
|
Comprehensive document grading response. |
|
Individual document relevance assessment. |
Module ContentsΒΆ
- class agents.rag.common.document_graders.models.DocumentBinaryGrading(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Binary pass/fail document grading.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- class agents.rag.common.document_graders.models.DocumentBinaryResponse(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Response for binary document grading.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- class agents.rag.common.document_graders.models.DocumentGradingResponse(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Comprehensive document grading response.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- class agents.rag.common.document_graders.models.DocumentRelevanceScore(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Individual document relevance assessment.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)