Merge pull request #641 from ScrapeGraphAI/urls_search_graph

feat: return urls in searchgraph
This commit is contained in:
Federico Aguzzi 2024-09-09 12:03:36 +02:00 committed by GitHub
commit 8a0d46b714
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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