# taukirahmed22/jewish-house-chat-bot- architecture

> Architecture diagram of the GitHub repository taukirahmed22/jewish-house-chat-bot-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/taukirahmed22/jewish-house-chat-bot-
- Repository: https://github.com/taukirahmed22/jewish-house-chat-bot-

## Overview

JH RAG Assistant is an n8n workflow that answers user questions using a curated set of approved answers. The principal workflow runs from the chat trigger to an AI agent, which uses local Ollama embeddings and Qdrant retrieval to ground answer generation through Gemini via OpenRouter; windowed session memory supplies conversation context. The workflow export is the only implementation file in the tree, so its path is used for its internal stages. Relationships shown are documented in the README; no source excerpts were provided.

Main entry points: [`JH_RAG_Assistant.workflow.json`](https://github.com/taukirahmed22/jewish-house-chat-bot-/blob/main/JH_RAG_Assistant.workflow.json) (AI Agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Orchestration"]
  node_chat["Chat Trigger"]
  node_agent["AI Agent"]
end

subgraph group_retrieval["Approved-answer retrieval"]
  node_embeddings["Ollama Embeddings"]
  node_qdrant[("Approved Answers &#40;Qdrant&#41;")]
end

subgraph group_response["Response and context"]
  node_gemini["Gemini &#40;OpenRouter&#41;"]
  node_memory["Session Memory"]
end

node_user(("User"))

node_user -->|"asks question"| node_chat
node_chat -->|"routes question"| node_agent
node_agent -->|"requests embeddings"| node_embeddings
node_agent -->|"retrieves answers"| node_qdrant
node_agent -->|"generates reply"| node_gemini
node_agent -->|"uses context"| node_memory

click node_chat "https://github.com/taukirahmed22/jewish-house-chat-bot-/blob/main/JH_RAG_Assistant.workflow.json"
click node_agent "https://github.com/taukirahmed22/jewish-house-chat-bot-/blob/main/JH_RAG_Assistant.workflow.json"
click node_memory "https://github.com/taukirahmed22/jewish-house-chat-bot-/blob/main/JH_RAG_Assistant.workflow.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_chat,node_agent,node_user toneBlue
class node_embeddings,node_qdrant toneAmber
class node_gemini,node_memory toneMint
```

## Components

### Orchestration

- [Chat Trigger](https://github.com/taukirahmed22/jewish-house-chat-bot-/blob/main/JH_RAG_Assistant.workflow.json): `JH_RAG_Assistant.workflow.json`
- [AI Agent](https://github.com/taukirahmed22/jewish-house-chat-bot-/blob/main/JH_RAG_Assistant.workflow.json): `JH_RAG_Assistant.workflow.json`

### Approved-answer retrieval

- **Ollama Embeddings**
- **Approved Answers (Qdrant)**

### Response and context

- **Gemini (OpenRouter)**
- [Session Memory](https://github.com/taukirahmed22/jewish-house-chat-bot-/blob/main/JH_RAG_Assistant.workflow.json): `JH_RAG_Assistant.workflow.json`

### Other components

- **User**

## Connections

- User → Chat Trigger: asks question (evidence: `README.md`)
- Chat Trigger → AI Agent: routes question (evidence: `README.md`)
- AI Agent → Ollama Embeddings: requests embeddings (evidence: `README.md`)
- AI Agent → Approved Answers (Qdrant): retrieves answers (evidence: `README.md`)
- AI Agent → Gemini (OpenRouter): generates reply (evidence: `README.md`)
- AI Agent → Session Memory: uses context (evidence: `README.md`)
