graph_rag_capability
autogen.agentchat.contrib.graph_rag.graph_rag_capability.GraphRagCapability
GraphRagCapability
A graph-based RAG capability uses a graph query engine to give a conversable agent the graph-based RAG ability.
An agent class with graph-based RAG capability could
- create a graph in the underlying database with input documents.
- retrieved relevant information based on messages received by the agent.
- generate answers from retrieved information and send messages back.
For example,
Initialize graph-based RAG capability with a graph query engine
Parameters:Name | Description |
---|---|
query_engine | Type: autogen.agentchat.contrib.graph_rag.graph_query_engine.GraphQueryEngine |
Instance Methods
add_to_agent
Add the capability to an agent
Parameters:Name | Description |
---|---|
agent | Type: autogen.ConversableAgent |