flowchart LR
Q["Query"] --> R["Retrieve<br/>Documents"]
R --> E{"Evaluate<br/>Relevance"}
E -- "High<br/>Confidence" --> P["Pass Through"]
E -- "Ambiguous" --> F["Filter Noise<br/>+ Supplement"]
E -- "Incorrect" --> W["Discard +<br/>Web Search"]
P & F & W --> G["LLM<br/>Generation"]
style Q fill:#9B8EC0,stroke:#1C355E,color:#fff
style R fill:#00C9A7,stroke:#1C355E,color:#fff
style E fill:#FF7A5C,stroke:#1C355E,color:#fff
style P fill:#00C9A7,stroke:#1C355E,color:#fff
style F fill:#9B8EC0,stroke:#1C355E,color:#fff
style W fill:#FF7A5C,stroke:#1C355E,color:#fff
style G fill:#1C355E,stroke:#1C355E,color:#fff
