Spaces:
Sleeping
Sleeping
KoRiF
commited on
Commit
·
e2522a1
1
Parent(s):
7bbdc4e
[temp] stub for the deep processing node
Browse files- workflow.py +7 -1
workflow.py
CHANGED
@@ -204,7 +204,13 @@ class GAIAAnsweringWorkflow:
|
|
204 |
return {}
|
205 |
|
206 |
def deep_processing_node(self, state: AgentState) -> dict:
|
207 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
|
209 |
def generate_answer_node(self, state: AgentState) -> dict:
|
210 |
"""Node that executes the question answering tool"""
|
|
|
204 |
return {}
|
205 |
|
206 |
def deep_processing_node(self, state: AgentState) -> dict:
|
207 |
+
question = f"""
|
208 |
+
question: \n <<{state["question"]}>> \n
|
209 |
+
resources: {str(state["uris"])} \n
|
210 |
+
reasoning: <<{state["reasoning"]}>>
|
211 |
+
"""
|
212 |
+
answer = gen_question_answer(question)
|
213 |
+
return {state["answer"]: answer}
|
214 |
|
215 |
def generate_answer_node(self, state: AgentState) -> dict:
|
216 |
"""Node that executes the question answering tool"""
|