A production-grade local RAG pipeline built for Australian SMB owners navigating interest rate decisions (fixing vs variable rates). The system combines Consumer Data Right (CDR) banking profiles (CUST_001), Open Banking product recommendations (open-banking-mcp), Reserve Bank of Australia (RBA) cash rate signals, and financial market sentiment with strict 3-layer guardrail validations to eliminate hallucinations.
| Demo | Walkthrough |
|---|---|
![]() |
![]() |
Click the preview image above to watch the full live demo walkthrough of this RAG Pipeline: Smart-Business Loan Rate Advisor on YouTube.
The application relies strictly on a clean 4-Component Local Architecture:
graph TD
User([SMB Loan Applicant / Web UI]) --> DASH[1. Python Web Dashboard Backend\nhttp://localhost:8000]
subgraph Data Sources & Connectors
CDR[CDR Banking MCP Connector]
OB[open-banking-mcp Tool]
RBA[RBA Monetary Signals Service]
SENT[Market News Sentiment Service]
SEARCH[DuckDuckGo News Search]
end
DASH --> CDR
DASH --> OB
DASH --> RBA
DASH --> SENT
DASH --> SEARCH
DASH -- USE_N8N_PIPELINE=true --> N8N[4. n8n Automation Engine\nhttp://localhost:5678]
DASH -- Native Pipeline --> RAG[RAG Orchestrator]
RAG --> QDRANT[(3. Qdrant Vector Store Container\nhttp://localhost:6333)]
N8N --> QDRANT
RAG --> OLLAMA[2. Local Ollama LLM Engine\nllama3.2:1b @ http://localhost:11434]
N8N --> OLLAMA
RAG --> GUARD[3-Layer Guardrails Validation]
GUARD --> FactCheck[Fact-Check & Citation Verifier]
GUARD --> ConfCheck[Confidence Threshold Check >= 0.70]
GUARD --> DiscCheck[Financial Broker Disclaimer Verifier]
GUARD --> EVAL[Ragas Quality Evaluator]
GUARD --> AUDIT[(JSON Alert Audit Log)]
EVAL --> Output([Validated Guidance Response Delivered to Web UI])
- CLI Demo & Recording Script: Full step-by-step terminal execution commands,
curlqueries, and exact sample JSON outputs for recording demos. - Web UI & Inspection Guide: Interactive web dashboard guide, status indicator checks, and log audit inspection.
- n8n Workflow Setup Guide: End-to-end instructions for importing and running n8n RAG workflows with Qdrant.
- Architecture & Concepts Q&A Walkthrough: 34 foundational, big-picture, and technical Q&A pairs explaining vectors, embeddings, Qdrant, tokenization, and pipeline flow.
Copy .env.example to .env for local testing and development:
cp .env.example .env# Recommended: One command to launch n8n & Qdrant infrastructure
docker compose up -d
# Alternatively using individual docker run commands:
# docker run -d --name qdrant_vector_store -p 6333:6333 -p 6334:6334 -v qdrant_storage:/qdrant/storage qdrant/qdrant:latest
# docker run -d --name n8n_automation -p 5678:5678 -v n8n_data:/home/node/.n8n n8nio/n8n:latest# Serve Ollama and pull required models
OLLAMA_HOST=0.0.0.0:11434 ollama serve
# LLM Text Generation Model
ollama pull llama3.2:1b
# Dedicated Vector Embedding Model (for Qdrant & n8n RAG)
ollama pull nomic-embed-textsource venv/bin/activate && python dashboard/server.pyOpen http://localhost:8000 in your browser.
- For a step-by-step visual run, see the Web UI Verification Guide.
- For terminal-based query testing, see the CLI Verification Guide.
- Having issues with connection or model setup? Check the Troubleshooting & Setup Fixes Guide.
| Component | Port & Endpoint | Description | Command / Execution |
|---|---|---|---|
| 1. Python Web Dashboard Backend | http://localhost:8000 | Flask API & Glassmorphic Dashboard UI | source venv/bin/activate && python dashboard/server.py |
| 2. Local Ollama LLM Engine | http://localhost:11434 | Local LLM (llama3.2:1b) |
OLLAMA_HOST=0.0.0.0:11434 ollama serve && ollama run llama3.2:1b |
| 3. Qdrant Vector Database Container | http://localhost:6333 | Vector store & visual dashboard (:6333/dashboard) |
docker run -d --name qdrant_vector_store -p 6333:6333 -p 6334:6334 -v qdrant_storage:/qdrant/storage qdrant/qdrant:latest |
| 4. n8n Automation Engine (Docker) | http://localhost:5678 | Ingestion & retrieval workflow engine | docker run -d --name n8n_automation -p 5678:5678 -v n8n_data:/home/node/.n8n n8nio/n8n:latest |
├── README.md <-- Main Project Overview & Architecture Guide
├── docs/
│ ├── RUN_CLI.md <-- Dedicated CLI Demo & Recording Script
│ ├── RUN_UI.md <-- Dedicated Web UI & Inspection Guide
│ ├── n8n_setup_guide.md <-- n8n Integration Guide
│ └── TROUBLESHOOTING.md <-- Connection & Setup Troubleshoot Guide
├── n8n_workflows/
│ ├── 1_data_ingestion_workflow.json <-- n8n Vector Ingestion Workflow
│ ├── 2_retrieval_rag_chain_workflow.json <-- n8n Primary RAG Retrieval Chain
│ └── 2_retrieval_rag_chain_workflow_2.json <-- n8n Secondary RAG Retrieval Chain
├── data/
│ ├── mock_cdr_loans.json <-- CDR Open Banking Customer Profiles
│ ├── mock_rba_signals.json <-- RBA Monetary Cash Rate Data
│ └── mock_market_sentiment.json <-- Financial Market Sentiment Index
├── logs/
│ ├── guardrails_alerts.json <-- Guardrail Decision & Safety Log
│ └── pipeline_execution.log <-- Pipeline Execution System Log
└── architecture/
└── ARCHITECTURE.md <-- System Design & Architectural Diagram
This software is provided for educational and decision support purposes only. It does not constitute personal financial product advice. Always consult a licensed mortgage broker or financial advisor before committing to loan rate modifications.

