[GH-ISSUE #2208] [BUG]: Agent with webscraping is hallucinating #1443

Closed
opened 2026-02-22 18:24:49 -05:00 by yindo · 3 comments
Owner

Originally created by @jeremiasbaur on GitHub (Sep 2, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2208

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

I discovered a bug while using the agent with the web-scraping command.

I was trying to scrape multiple lecture pages to generate a structured format so I can paste the content into an excel file. I instructed my agent in what information I am interested in and then started it with the first webpage. For the consecutive webpages, I was using this command:

@agent
Do the same for:
@web-scraping www.website.com

Sometimes, the agent correctly accessed the webpage and gave me the correct information. However, if I instantly sent the next command with the next website, the agent didn't scrape the website and just hallucinated some lecture information. If I only send the command after e.g. 30s, everything works well. I know that I don't need to use @agent every time but it shouldn't change anything, right?

Why does this happen and how can you / I fix it?

Are there known steps to reproduce?

No response

Originally created by @jeremiasbaur on GitHub (Sep 2, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2208 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? I discovered a bug while using the agent with the web-scraping command. I was trying to scrape multiple lecture pages to generate a structured format so I can paste the content into an excel file. I instructed my agent in what information I am interested in and then started it with the first webpage. For the consecutive webpages, I was using this command: @agent Do the same for: @web-scraping www.website.com Sometimes, the agent correctly accessed the webpage and gave me the correct information. However, if I instantly sent the next command with the next website, the agent didn't scrape the website and just hallucinated some lecture information. If I only send the command after e.g. 30s, everything works well. I know that I don't need to use @agent every time but it shouldn't change anything, right? Why does this happen and how can you / I fix it? ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:24:49 -05:00
yindo closed this issue 2026-02-22 18:24:49 -05:00
Author
Owner

@pleabargain commented on GitHub (Sep 2, 2024):

Which v. of the desktop are you using? OS?

@pleabargain commented on GitHub (Sep 2, 2024): Which v. of the desktop are you using? OS?
Author
Owner

@jeremiasbaur commented on GitHub (Sep 2, 2024):

I am using the version 1.6.4

@jeremiasbaur commented on GitHub (Sep 2, 2024): I am using the version 1.6.4
Author
Owner

@timothycarambat commented on GitHub (Sep 3, 2024):

When the @agent session closes it does not keep the previous session data (like an entire website) in memory. If you want to persist the data of a whole website that was scraped use the actual website scraper and embed it is a document. Ephemeral data an agent accumulates during a session is currently not persisted between sessions since it may not be useful after the session is completed.

If you dont send a chat for 30s, the session can close and the UI will report this as agent session ended in which sending a chat afterwards is like using regular rag.

@timothycarambat commented on GitHub (Sep 3, 2024): When the `@agent` session closes it does not keep the previous session data (like an entire website) in memory. If you want to persist the data of a whole website that was scraped use the actual website scraper and embed it is a document. Ephemeral data an agent accumulates during a session is currently not persisted between sessions since it may not be useful after the session is completed. If you dont send a chat for 30s, the session can close and the UI will report this as `agent session ended` in which sending a chat afterwards is like using regular rag.
yindo changed title from [BUG]: Agent with webscraping is hallucinating to [GH-ISSUE #2208] [BUG]: Agent with webscraping is hallucinating 2026-06-05 14:40:48 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1443