haive.agents.rag.document_grading.agent¶
Document Grading RAG Agent.
Iterative document grading with structured output.
Classes¶
Agent that iterates over documents and grades each one. |
|
RAG with document grading and filtering. |
|
Grade for a single document. |
Module Contents¶
- class haive.agents.rag.document_grading.agent.DocumentGradingAgent¶
Bases:
haive.agents.base.agent.AgentAgent that iterates over documents and grades each one.
- build_graph()¶
Build document grading graph.
- Return type:
haive.core.graph.state_graph.base_graph2.BaseGraph
- class haive.agents.rag.document_grading.agent.DocumentGradingRAGAgent¶
Bases:
haive.agents.multi.base.SequentialAgentRAG with document grading and filtering.
- class haive.agents.rag.document_grading.agent.SingleDocumentGrade(/, **data)¶
Bases:
pydantic.BaseModelGrade for a single document.
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)