Skip to content

Commit afb6eb7

Browse files
committed
feat: return urls in searchgraph
1 parent 9e9c775 commit afb6eb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scrapegraphai/nodes/merge_answers_node.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def execute(self, state: dict) -> dict:
101101

102102
merge_chain = prompt_template | self.llm_model | output_parser
103103
answer = merge_chain.invoke({"user_prompt": user_prompt})
104+
answer["sources"] = state.get("urls")
104105

105106
state.update({self.output[0]: answer})
106107
return state

0 commit comments

Comments
 (0)