haive.agents.graphs¶
LangGraph Platform graph entry points for haive-agents.
This module exposes all workable agent graphs as callable factories for
LangGraph Platform (langgraph.json). Each function returns a compiled
LangGraph StateGraph served via langgraph dev or LangGraph Cloud.
Functions¶
Collaborative multi-agent conversation. |
|
Structured debate between agents. |
|
Document Grading RAG: grades retrieved documents for relevance. |
|
Dynamic RAG with multiple retrieval sources. |
|
FLARE RAG: forward-looking active retrieval. |
|
RAG Fusion: reciprocal rank fusion across multiple retrievals. |
|
|
LATS: Monte Carlo Tree Search over LLM responses with reflection scoring. |
LLM Compiler: structured DAG planner + parallel executor + joiner. |
|
|
LLM-based RAG agent. |
Memory-enhanced agent with vector store + knowledge graph. |
|
Sequential multi-agent pipeline (agent A -> B -> C). |
|
Multi-Query RAG: generates multiple query variants for retrieval. |
|
Plan-and-execute agent: creates a plan then executes each step. |
|
Base retrieval-augmented generation agent (HuggingFace embeddings). |
|
ReAct agent with reasoning + acting loop and tool-use. |
|
Logic-based reasoning system with multiple engines. |
|
Self-reflection agent that generates then improves its answer. |
|
Reflexion: draft -> reflect -> revise loop with ReactAgent + SimpleAgent. |
|
|
ReWOO: plan all steps upfront, execute in parallel, synthesize answer. |
Round-robin conversation: each agent speaks in fixed order. |
|
Self-Discover adapter: adapts modules to the task. |
|
Self-Discover executor: executes the structured reasoning plan. |
|
Self-Discover selector: picks relevant reasoning modules. |
|
Self-Discover structurer: structures the reasoning plan. |
|
Self-Route RAG: analyzes query to choose optimal retrieval strategy. |
|
Basic conversational agent with hooks and structured output. |
|
Simple RAG = retriever + answer agent in sequence. |
|
Speculative RAG: hypothesis generation + parallel verification. |
|
Step-Back RAG: generates abstracted queries for better retrieval. |
|
Dynamic supervisor that routes tasks to sub-agents. |
|
Task analysis and decomposition agent. |
Module Contents¶
- haive.agents.graphs.collaborative_conversation()¶
Collaborative multi-agent conversation.
- haive.agents.graphs.debate_conversation()¶
Structured debate between agents.
- haive.agents.graphs.document_grading_rag()¶
Document Grading RAG: grades retrieved documents for relevance.
- haive.agents.graphs.dynamic_rag()¶
Dynamic RAG with multiple retrieval sources.
- haive.agents.graphs.flare_rag()¶
FLARE RAG: forward-looking active retrieval.
- haive.agents.graphs.fusion_rag()¶
RAG Fusion: reciprocal rank fusion across multiple retrievals.
- haive.agents.graphs.lats()¶
LATS: Monte Carlo Tree Search over LLM responses with reflection scoring.
- haive.agents.graphs.llm_compiler()¶
LLM Compiler: structured DAG planner + parallel executor + joiner.
- haive.agents.graphs.llm_rag()¶
LLM-based RAG agent.
- haive.agents.graphs.memory_agent()¶
Memory-enhanced agent with vector store + knowledge graph.
- haive.agents.graphs.multi_agent_sequential()¶
Sequential multi-agent pipeline (agent A -> B -> C).
- haive.agents.graphs.multi_query_rag()¶
Multi-Query RAG: generates multiple query variants for retrieval.
- haive.agents.graphs.plan_and_execute()¶
Plan-and-execute agent: creates a plan then executes each step.
- haive.agents.graphs.rag_agent()¶
Base retrieval-augmented generation agent (HuggingFace embeddings).
- haive.agents.graphs.react_agent()¶
ReAct agent with reasoning + acting loop and tool-use.
- haive.agents.graphs.reasoning_system()¶
Logic-based reasoning system with multiple engines.
- haive.agents.graphs.reflection_agent()¶
Self-reflection agent that generates then improves its answer.
- haive.agents.graphs.reflexion()¶
Reflexion: draft -> reflect -> revise loop with ReactAgent + SimpleAgent.
- haive.agents.graphs.rewoo()¶
ReWOO: plan all steps upfront, execute in parallel, synthesize answer.
- haive.agents.graphs.round_robin_conversation()¶
Round-robin conversation: each agent speaks in fixed order.
- haive.agents.graphs.self_discover_adapter()¶
Self-Discover adapter: adapts modules to the task.
- haive.agents.graphs.self_discover_executor()¶
Self-Discover executor: executes the structured reasoning plan.
- haive.agents.graphs.self_discover_selector()¶
Self-Discover selector: picks relevant reasoning modules.
- haive.agents.graphs.self_discover_structurer()¶
Self-Discover structurer: structures the reasoning plan.
- haive.agents.graphs.self_route_rag()¶
Self-Route RAG: analyzes query to choose optimal retrieval strategy.
- haive.agents.graphs.simple_agent()¶
Basic conversational agent with hooks and structured output.
- haive.agents.graphs.simple_rag()¶
Simple RAG = retriever + answer agent in sequence.
- haive.agents.graphs.speculative_rag()¶
Speculative RAG: hypothesis generation + parallel verification.
- haive.agents.graphs.step_back_rag()¶
Step-Back RAG: generates abstracted queries for better retrieval.
- haive.agents.graphs.supervisor()¶
Dynamic supervisor that routes tasks to sub-agents.
- haive.agents.graphs.task_analysis()¶
Task analysis and decomposition agent.