add the url variable in the get_text_summary function to pass it to the memory

By sending the url along when calling browse.summarize_text, we can then add it along the chunk in memory.
This commit is contained in:
Maiko Bossuyt
2023-04-12 16:42:14 +02:00
parent b20c0117c5
commit 5bb551db95

View File

@@ -183,7 +183,7 @@ def browse_website(url, question):
def get_text_summary(url, question):
"""Return the results of a google search"""
text = browse.scrape_text(url)
summary = browse.summarize_text(text, question)
summary = browse.summarize_text(url, text, question)
return """ "Result" : """ + summary