Update rag_langgraph.py
Browse files- rag_langgraph.py +12 -2
rag_langgraph.py
CHANGED
|
@@ -117,8 +117,18 @@ def create_graph(topic, word_count):
|
|
| 117 |
|
| 118 |
def run_multi_agent(topic, word_count):
|
| 119 |
graph = create_graph(topic, word_count)
|
| 120 |
-
|
| 121 |
"messages": [
|
| 122 |
HumanMessage(content="Evolution of Retrieval-Augmented Generation from Naive RAG to Agentic RAG")
|
| 123 |
]
|
| 124 |
-
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
|
| 118 |
def run_multi_agent(topic, word_count):
|
| 119 |
graph = create_graph(topic, word_count)
|
| 120 |
+
result = graph.invoke({
|
| 121 |
"messages": [
|
| 122 |
HumanMessage(content="Evolution of Retrieval-Augmented Generation from Naive RAG to Agentic RAG")
|
| 123 |
]
|
| 124 |
+
})
|
| 125 |
+
print("###")
|
| 126 |
+
print(result)
|
| 127 |
+
print("###")
|
| 128 |
+
print(result.messages)
|
| 129 |
+
print("###")
|
| 130 |
+
print(result.messages[1])
|
| 131 |
+
print("###")
|
| 132 |
+
print(result.messages[1]).content
|
| 133 |
+
print("###")
|
| 134 |
+
return result
|