mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-12 21:01:56 +08:00
Merge pull request #641 from ScrapeGraphAI/urls_search_graph
feat: return urls in searchgraph
This commit is contained in:
commit
8a0d46b714
@ -100,6 +100,7 @@ class MergeAnswersNode(BaseNode):
|
||||
|
||||
merge_chain = prompt_template | self.llm_model | output_parser
|
||||
answer = merge_chain.invoke({"user_prompt": user_prompt})
|
||||
answer["sources"] = state.get("urls")
|
||||
|
||||
state.update({self.output[0]: answer})
|
||||
return state
|
||||
|
||||
Loading…
Reference in New Issue
Block a user