haive.agents.rag.corrective.agent ================================= .. py:module:: haive.agents.rag.corrective.agent .. autoapi-nested-parse:: Corrective RAG (CRAG) Agent. from typing import Any, Dict Self-correcting retrieval with quality assessment. Implements architecture from rag-architectures-flows.md: Retrieval → Relevance Check → Knowledge Refinement/Web Search/Combine Classes ------- .. autoapisummary:: haive.agents.rag.corrective.agent.CorrectiveRAGAgent Module Contents --------------- .. py:class:: CorrectiveRAGAgent Bases: :py:obj:`haive.agents.multi.base.ConditionalAgent` Corrective RAG with self-correcting retrieval. .. py:method:: from_documents(documents, llm_config = None, relevance_threshold = 0.7, **kwargs) :classmethod: Create Corrective RAG from documents. :param documents: Documents to index :param llm_config: Optional LLM configuration :param relevance_threshold: Threshold for document relevance :param \*\*kwargs: Additional arguments :returns: CorrectiveRAGAgent instance