examples(account-signal-scoring): turn account signals into one score with SIE ranking#205
Open
richard7ao wants to merge 1 commit into
Open
Conversation
… demo
Turn a pile of CRM account signals into one score a team can act on, with
SIE doing the ranking. Signals roll up into a deterministic 0-100 score and
band, then the account's context is embedded and reranked against a corpus of
past-outcome playbooks (extract + encode + score) to pick the recommended
play. An optional chat/completions call drafts the account brief, falling
back to a deterministic writer so the board is always populated.
Self-contained Docker Compose + Node UI, CPU-only by default. Contributed
from a {Tech: Europe} London AI Hackathon project by the Attio-integration
team.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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
Adds a new gallery example,
account-signal-scoring— turning a pile of CRM account signals into one score a team can act on, with SIE doing the ranking.This is a cleaned-up, self-contained slice of our
{Tech: Europe}London AI Hackathon project (codename "Rick", built on top of Attio + Stripe signals). Opening as a draft per Daniel's note — happy to iterate on scope, naming, and the writing style with the team.What it does
encoded (MiniLM), and ranked (cosine → cross-encoderscorewith BGE-reranker) against a corpus of past-outcome playbooks to pick the recommended play.extract(GLiNER) surfaces entities alongside.SIE_CHAT_MODELset, the OpenAI-compatible/v1/chat/completionsendpoint drafts the brief, grounded in the matched playbook; otherwise a deterministic brief keeps the board populated.SIE primitives
extract,encode,score, and (optional)chat/completions— one cluster, one round-trip.Shape
Follows the
stripe-link-fraudexample:compose.yml(CPU image, 3 models preloaded, ~440 MB), a tiny Node HTTP + SSE server, and a vanilla-JS UI (no build step). CPU-only by default; the LLM brief is opt-in. Also ships a headless CLI (npm run score) that ranks the whole book into risk/expansion boards. Added a row toexamples/README.md.Test plan
npm install+npm run typecheckclean/api/health,/api/accounts, static assets, and graceful SSE error when SIE is unreachable all verifieddocker compose upend-to-end run against a live SIE server (needs Docker; not run in this environment — would appreciate a CI/maintainer check)Generated with Devin