haive.agents.rag.hyde.agent =========================== .. py:module:: haive.agents.rag.hyde.agent .. autoapi-nested-parse:: HyDE (Hypothetical Document Embeddings) RAG Agent. from typing import Any Bridges query-document semantic gap by generating hypothetical documents. Implements architecture from rag-architectures-flows.md: Query -> Generate Hypothetical Doc -> Embed -> Retrieve Real Docs -> Generate Classes ------- .. autoapisummary:: haive.agents.rag.hyde.agent.HyDERAGAgent Module Contents --------------- .. py:class:: HyDERAGAgent Bases: :py:obj:`haive.agents.multi.MultiAgent` HyDE RAG using hypothetical document generation for better retrieval. .. py:method:: from_documents(documents, llm_config = None, **kwargs) :classmethod: Create HyDE RAG from documents. :param documents: Documents to index :param llm_config: Optional LLM configuration :param \*\*kwargs: Additional arguments :returns: HyDERAGAgent instance