agents.rag.common.document_graders.modelsΒΆ

RAG Structured Output Models.

Pydantic models for structured outputs from RAG evaluation agents.

ClassesΒΆ

DocumentBinaryGrading

Binary pass/fail document grading.

DocumentBinaryResponse

Response for binary document grading.

DocumentGradingResponse

Comprehensive document grading response.

DocumentRelevanceScore

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)