File size: 581 Bytes
952b7e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
```mermaid

flowchart TB

    A["User enters query in Streamlit UI"] --> B{Is it a Greeting?}

    B -- Yes --> C["Display \"Hello there!\""]

    B -- No --> D{Check with Obnoxious_Agent}

    D -- Yes --> E["Display \"Question is inappropriate\""]

    D -- No --> F["Query_Agent retrieves docs from Pinecone"]

    F --> G["Answering_Agent uses GPT to generate answer"]

    G --> H{"Relevant_Documents_Agent checks doc relevance"}

    H -- Yes --> I["Final response displayed to user"]

    H -- No --> M["Final response with Unrelated tips displayed to user"]



```

####