Grounded Memory Research Loop
The unprompted research loop in the Grounded Memory engine repeatedly explores online sources across iterative rounds, using live Google Search and URL scraping to extract verified facts about a brand until the exhaustion of novel findings terminates the run.
sequenceDiagram
participant E as Grounded Memory Engine
participant S as Live Search and Web
participant LLM as Gemini Model
participant DB as Grounded Memory Facts
loop Up to max_rounds (Until Exhausted)
E->>LLM: Prompt with Brand and Known Facts
LLM->>S: Grounded Search Query
S-->>LLM: Web Pages and Sources
LLM-->>E: Structured Facts and Citations
alt Has New Facts
E->>DB: Store New Facts and URLs
E->>E: Append to Known Facts
else No New Facts
E->>E: Terminate Loop
end
end