Add transaction_screening_local template (rules + query on local DuckDB)#80
Draft
cafzal wants to merge 1 commit into
Draft
Add transaction_screening_local template (rules + query on local DuckDB)#80cafzal wants to merge 1 commit into
cafzal wants to merge 1 commit into
Conversation
|
The docs preview for this pull request has been deployed to Vercel!
|
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.
What
A beginner, rules-based template that runs entirely on a local DuckDB database — no Snowflake account or Native App. It triages a transfer ledger: classifies structuring and large-sender accounts, flags suspects, and expands a one-hop investigation set across the transfer network via a relationship self-join.
It's the local-development counterpart to the Snowflake-backed templates — same ontology → rules → query workflow, on an engine you can run anywhere.
Reasoning
is_structuring,is_large_sender,is_suspect(OR-chained),near_suspect(1-hop).transfers_torelationship (the local way to answer connectivity, without the graph reasoner).Files
Also adds the index row to
v1/README.md.Verification
Runs end-to-end on
relationalai==1.8.1(in-memory DuckDB): network overview, per-account volume, suspects (C1001 + ring C2001–C2005), the ring visible in the self-join, and the expanded investigation set.py_compile+ruffclean.Notes / open items (draft)
enable_model_deployment=True+model.auto_deploy=True), which the package currently flags as experimental — confirm the support stance with the engine team before merging.fraud-detection(multi-reasoner, Snowflake) andcommercial_underwriting(rules) but distinct.