mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-01 21:00:48 +08:00
feat: return urls in searchgraph
This commit is contained in:
parent
9e9c77551f
commit
afb6eb7e47
@ -101,6 +101,7 @@ class MergeAnswersNode(BaseNode):
|
|||||||
|
|
||||||
merge_chain = prompt_template | self.llm_model | output_parser
|
merge_chain = prompt_template | self.llm_model | output_parser
|
||||||
answer = merge_chain.invoke({"user_prompt": user_prompt})
|
answer = merge_chain.invoke({"user_prompt": user_prompt})
|
||||||
|
answer["sources"] = state.get("urls")
|
||||||
|
|
||||||
state.update({self.output[0]: answer})
|
state.update({self.output[0]: answer})
|
||||||
return state
|
return state
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user