1. End-to-End Reproducibility: The entire project (IBM Db2 12.1.5 + Streamlit + LangChain + FastEmbed) runs via Docker Compose (docker compose up -d) and includes an automated submission validator and unit test suite covering SQL security guardrails, native Db2 VECTOR_DISTANCE retrieval, and QUERY_AUDIT logging.
  2. Neuro-Symbolic Zero-Hallucination Design: Instead of letting the LLM guess date math or policy thresholds, Python deterministically computes exact elapsed days (days_elapsed) from Db2 relational rows and pairs them with policies retrieved via Db2's native VECTOR(384) COSINE distance before synthesizing the final verdict via LangChain LCEL.
  3. Verified Test Cases Included: Tested and verified across standard approvals (Order 101: 4 days <= 7-day damaged window -> APPROVED), VIP loyalty exceptions (Order 102: Gold tier, 39 days <= 60-day VIP window -> APPROVED), out-of-window denials (Order 103: 47 days > 30-day window -> DENIED), multi-table aggregations (LISTAGG), and adversarial SQL injection/DML (DELETE FROM ORDERS -> REJECTED & logged in QUERY_AUDIT).
  4. All dataset records are 100% synthetic and licensed under MIT.

Built With

  • fastembed-(baai/bge-small-en-v1.5)
  • groq-cloud-api-(openai/gpt-oss-120b)
  • ibm-db
  • ibm-db2-12.1.5-(native-vector(384)-&-vector-distance)
  • langchain-core
  • langchain-groq
  • python-3.11
  • streamlit
Share this project:

Updates

Submission history