Skip to content

feat(examples): add Dozer + LLM + Vector DB + LangChain banking advisor sample - #2533

Open
open5588 wants to merge 1 commit into
getdozer:mainfrom
open5588:feat/dozer-llm-vector-langchain-sample-1690
Open

open5588 wants to merge 1 commit into
getdozer:mainfrom
open5588:feat/dozer-llm-vector-langchain-sample-1690

Conversation

@open5588

Copy link
Copy Markdown

/claim #1690

Summary

Adds a complete, working sample (examples/llm-banking-advisor) demonstrating how Dozer, Vector Databases (ChromaDB / semantic embeddings), LangChain, and LLMs work together to power a hyper-personalized credit card recommendation and banking chatbot (#1690).

Architecture & Features

  1. Multi-Dataset Dozer Streaming Pipeline (dozer-config.yaml):
    • Ingests customer_profiles, transactions, and credit_card_products datasets.
    • Uses Dozer streaming SQL to join customer demographics with real-time category-level transaction spend (travel_spend, dining_spend, groceries_spend, shopping_spend, entertainment_spend, total_spend, txn_count) into materialized customer_profile and card_catalog views.
  2. Dozer API + LangChain + Vector RAG Integration (dozer_client.py, vector_rag.py, guardrails.py, advisor.py, app.py):
    • Queries live Dozer REST endpoints (http://localhost:8080/customer_profile/query, /card_catalog/query) with automatic local SQL emulation fallback for zero-setup offline testing.
    • Enforces financial underwriting guardrails (minimum age, FICO score, annual income, and risk tolerance).
    • Ranks eligible credit card products using semantic vector similarity (Chroma / normalized embeddings) combined with customer category spend alignment, and synthesizes grounded recommendations via LangChain (ChatOpenAI when OPENAI_API_KEY is set, or deterministic grounded explainer fallback).
  3. Docker Compose & Automated Test Suite (docker-compose.yml, .env.example, tests/):
    • Includes docker-compose.yml for launching Dozer and ChromaDB together, plus 19 unit and integration tests (python3 -m unittest discover -s tests -v).

Fixes #1690

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Jason Wu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@open5588
open5588 force-pushed the feat/dozer-llm-vector-langchain-sample-1690 branch from ae3d3d6 to 86453f3 Compare October 15, 2026 12:04

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sample: Dozer + LLM + Vector database + Langchain sample

2 participants