feat: add Dozer + LangChain + Vector RAG banking advisor sample (fixes #1690) - #2516
Open
iprasen wants to merge 1 commit into
Open
feat: add Dozer + LangChain + Vector RAG banking advisor sample (fixes #1690)#2516iprasen wants to merge 1 commit into
iprasen wants to merge 1 commit into
Conversation
…getdozer#1690) - Add comprehensive Dozer streaming SQL configuration (dozer-config.yaml) materializing real-time customer profiles from multi-source CSVs - Dual-mode DozerClient with live REST API querying and zero-dependency offline SQL stream emulation - LangChain Vector RAG with Chroma integration and customer transaction spend concentration weighting - Bank-grade financial underwriting guardrails enforcing credit score, income, and risk tolerance thresholds - Interactive consultation chat and machine-readable JSON CLI - Full 19-test automated test suite covering config validation, client aggregation, guardrails, and RAG retrieval
|
Prasenjit 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #1690.
Closes #1690
Fixes #1690
/claim #1690
Implements a complete, production-grade banking advisor sample inspired by Dozer's article on hyper-personalization using LLMs, Vector Databases, and LangChain.
Architecture & Implementation
Key Components Added in
examples/llm-banking-advisor/:Modern Schema-Valid Dozer Configuration (
dozer-config.yaml):dozer.jsonschema without obsoleteendpoints:syntax.INTO customer_profiledynamically aggregatestotal_spend_usd,transaction_count, andmax_single_transaction_usdby joiningcustomer_profilesandtransactions.port: 8080) and gRPC (port: 50051) with sink configurations.Dual-Mode Dozer Client (
dozer_client.py):POST /customer_profile/queryandGET /card_catalog).Financial Underwriting Guardrails (
guardrails.py):LangChain Vector RAG & Spend Weighting (
vector_rag.py):Advisor Orchestrator & CLI (
advisor.py,app.py):OPENAI_API_KEYis present, or a deterministic rule-based explainer when offline).--interactive) and machine-readable JSON output (--json).Automated Test Suite (
tests/):python3 -m unittest discover -s tests -v).Verification
All 19 unit tests pass in 0.12s:
CLI Sample Run: