haive.agents.rag.adaptive.agent =============================== .. py:module:: haive.agents.rag.adaptive.agent .. autoapi-nested-parse:: Adaptive RAG Agent. Dynamic strategy selection based on query complexity. Routes queries to appropriate RAG strategies. Classes ------- .. autoapisummary:: haive.agents.rag.adaptive.agent.AdaptiveRAGAgent haive.agents.rag.adaptive.agent.QueryAnalysis Module Contents --------------- .. py:class:: AdaptiveRAGAgent Bases: :py:obj:`haive.agents.multi.base.ConditionalAgent` Adaptive RAG that routes queries based on complexity. .. py:method:: from_documents(documents, llm_config = None, embedding_model = None, **kwargs) :classmethod: Create Adaptive RAG from documents. :param documents: Documents to index :param llm_config: Optional LLM configuration :param embedding_model: Optional embedding model :param \*\*kwargs: Additional arguments :returns: AdaptiveRAGAgent instance .. py:class:: QueryAnalysis(/, **data) Bases: :py:obj:`pydantic.BaseModel` Analysis of query characteristics. 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.