GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wcmc-its/ReciterAI: ReCiter AI: topic/subtopic hierarchy, publication scoring, faculty rollups, spotlight generation. Publishes to S3 + DynamoDB for Scholars Profile System.

BranchesTags
Open more actions menu

Latest commit

 

History

601 Commits
601 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
cli
cli
 
 
config
config
 
 
docs
docs
 
 
gates
gates
 
 
infra
infra
 
 
pipeline_area_signals
pipeline_area_signals
 
 
pipeline_cold
pipeline_cold
 
 
pipeline_common
pipeline_common
 
 
pipeline_cores
pipeline_cores
 
 
pipeline_drift
pipeline_drift
 
 
pipeline_enrichment
pipeline_enrichment
 
 
pipeline_feedback
pipeline_feedback
 
 
pipeline_grants
pipeline_grants
 
 
pipeline_hierarchy
pipeline_hierarchy
 
 
pipeline_hot
pipeline_hot
 
 
pipeline_onboarding
pipeline_onboarding
 
 
pipeline_spotlight
pipeline_spotlight
 
 
pipeline_taxonomy_drift
pipeline_taxonomy_drift
 
 
pipeline_tools
pipeline_tools
 
 
prompts
prompts
 
 
review
review
 
 
scripts
scripts
 
 
spotlight
spotlight
 
 
tests
tests
 
 
utils
utils
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
ARCHITECTURE.md
ARCHITECTURE.md
 
 
Dockerfile
Dockerfile
 
 
GETTING_STARTED.md
GETTING_STARTED.md
 
 
README.md
README.md
 
 
aging_blind_check_worksheet.csv
aging_blind_check_worksheet.csv
 
 
assign_subtopics.py
assign_subtopics.py
 
 
compute_top_topic.py
compute_top_topic.py
 
 
conftest.py
conftest.py
 
 
pytest.ini
pytest.ini
 
 
requirements-dev.txt
requirements-dev.txt
 
 
requirements.txt
requirements.txt
 
 
rollup_by_cwid.py
rollup_by_cwid.py
 
 
score_publications.py
score_publications.py
 
 
taxonomy_v1.json
taxonomy_v1.json
 
 
taxonomy_v2.json
taxonomy_v2.json
 
 
tool_index.json
tool_index.json
 
 
tools_to_canonicalize.json
tools_to_canonicalize.json
 
 

Repository files navigation

ReciterAI

Standalone service that produces the canonical research-domain hierarchy, publication scores, faculty rollups, and spotlight artifacts consumed by the Scholars Profile System.

What it does

Pipeline Output Where it goes
generate_taxonomy.py Axis 1 taxonomy: ~67 inductive domain topics (taxonomy_v2.json) Local file; consumed by scoring + subtopic pipelines
score_publications.py Per-publication topic vectors (Haiku screening + Sonnet dense scoring via AWS Bedrock) DynamoDB
discover_subtopics.py + assign_subtopics.py Axis 1.5 subtopics (~8–15 per topic) and per-publication assignments DynamoDB + S3 hierarchy artifact
aggregate_subtopic_scores.py + rollup_by_cwid.py CWID-level faculty profiles (topic + subtopic rollups) DynamoDB
spotlight/ + backfill_spotlight.py Curated per-faculty spotlight content (LLM-synthesized lede + supporting publications) S3 artifact + DynamoDB
Hierarchy publish Canonical hierarchy + JSON Schema + manifest, versioned + latest/ s3://wcmc-reciterai-hierarchy

Two-channel publishing

  • S3 — wcmc-reciterai-hierarchy/ — canonical hierarchy contract (versioned + latest/), JSON Schema co-published. SPS ETL (etl/hierarchy/index.ts) reads latest/manifest.json, short-circuits on unchanged sha256, otherwise validates against the schema and upserts ~2,010 subtopic rows.
  • S3 — wcmc-reciterai-artifacts/ — spotlight artifacts (versioned + latest/).
  • DynamoDB — publication scores, topic assignments, faculty rollups, spotlight records. SPS ETL (etl/dynamodb/, etl/spotlight/) reads on a schedule into its Prisma/MySQL layer.

How SPS consumes this

ReciterAI is upstream; SPS is downstream. SPS runs its own ETLs to pull from S3 + DynamoDB into its application database. ReciterAI does not call SPS, does not depend on SPS at runtime, and ships independently. Contract source-of-truth lives in docs/hierarchy-contract.md and docs/spotlight-contract.md in this repo.

Architecture

Eight version-controlled diagrams, generated from plain-data specs by a dependency-free SVG toolkit in scripts/diagrams/. Regenerate with node scripts/diagrams/build.mjs; the full gallery (zoomable, ⌘P → PDF) is docs/architecture/index.html.

① System context — what feeds ReciterAI and who consumes it.

System context: ReciterAI reads the publication corpus from ReciterDB and a frozen taxonomy, runs a seven-stage LLM pipeline on AWS Bedrock (with an OpenAI fallback), and publishes to two S3 buckets + DynamoDB that the Scholars Profile System pulls from.

② Processing pipeline — the seven stages from corpus to artifact, and the model each calls.

Processing pipeline: score_publications (Haiku screen then Sonnet dense score) feeds discover/assign subtopics and rollup_by_cwid; a separate daily-enrichment job adds synopsis and impact; spotlight synthesizes a lede; the hierarchy publisher composes the canonical artifact. Stages write to DynamoDB and S3.

③ AWS runtime topology — how it's scheduled and deployed.

AWS runtime topology: five EventBridge cron rules drive a Step Functions hot path, a Fargate enrichment task, and three Lambdas, reaching Bedrock, DynamoDB, S3, and Secrets Manager; the targets read ReciterDB and egress to OpenAI and Teams.

④ Publish contract — the one-way hand-off to the Scholars Profile System.

Publish contract: ReciterAI publishers write two versioned S3 channels (hierarchy and artifacts, each with a latest/ pointer, a co-published JSON Schema, and a sha256 manifest) plus DynamoDB record types; the SPS ETLs pull each into its Prisma/MySQL application database.

⑤ Functional overview — a plain-English picture of what ReciterAI does, framed by the question each step answers.

Functional overview: ReciterAI reads every WCM publication and, against a frozen research-domain map, understands each paper on three axes (domain, theme, methods) plus a one-line synopsis and impact score; the labelled papers roll up into per-faculty profiles, a spotlight curates the strongest theme, and everything is published to the ~9,000 public faculty profiles.

⑥ Technical stack — the technology layers, from the Python application code down to the data plane and dev tooling.

Technical stack: pure Python 3.12 (boto3, OpenAI SDK, SQLAlchemy, jsonschema) calls AWS Bedrock for Claude inference with an OpenAI gpt-5.1 fallback; runs as a Docker image on ECS Fargate and three Lambdas orchestrated by Step Functions and EventBridge cron; persists to DynamoDB and S3 while reading the corpus from ReciterDB; configured by Secrets Manager and checked-in JSON/YAML.

⑦ Stability & drift — the run-to-run dynamics: what jiggles, what damps it, and the watchdogs that measure residual drift.

Stability and drift: three sources of run-to-run jitter (subtopic relabel, upstream author churn, daily grounding churn) are damped by a band of stabilizers (durable subtopic ids via match-or-mint, the overlap-to-LLM reconcile ladder, the STAGE# content-addressed skip-cache, the lede/relabel skip gates, and the rotation selector), which read and write durable DynamoDB state; drift, onboarding, and feedback watchdogs measure residual drift and alert MS Teams and GitHub.

⑧ Key event sequences — worked step-by-step traces of the five recurring events, from trigger to the record each produces.

Key event sequences: five swimlane traces — a new publication scored (Haiku screen at 0.3, Sonnet dense score, assign and rollup) weekly, the daily enrichment tick (Sonnet synopsis plus impact with an OpenAI gpt-5.1 content-filter fallback), the monthly spotlight publish (dirty-gate, Opus lede with Haiku critic, clone/coverage gate, publish and rotate), an operator hierarchy rebuild (re-cluster, reconcile, match-or-mint durable id, publish with sha256), and the daily drift watchdog (scan, threshold check, DRIFT# row, Teams alert).

→ Worked examples with real values for each of these events: docs/architecture/event-walkthroughs.md.

The diagrams are the picture, not the source of truth — edit the specs in scripts/diagrams/ and rebuild. The SVGs above are committed and render inline on GitHub; PNGs are gitignored and regenerable.

Documentation

  • GETTING_STARTED.md — local setup, env vars, running each pipeline
  • ARCHITECTURE.md — data flow, axes, publishing channels
  • docs/architecture/ — rendered architecture diagrams (system context, processing pipeline, AWS topology, publish contract, functional overview, technical stack, stability & drift, key event sequences); regenerate with node scripts/diagrams/build.mjs, edit via scripts/diagrams/
  • docs/architecture/event-walkthroughs.md — worked examples (real values from the published artifacts) for each key event in diagram ⑧
  • docs/RECITERAI-SPEC.md — architectural decisions and execution status (read this before picking up any architectural work)
  • docs/stage-records-and-gates.md — Phase 9 substrate guide for new stage authors
  • docs/taxonomy-methodology.md — design principles for the Axis 1 taxonomy
  • docs/topic-subtopic-assignment.md — mechanics of how publications get labeled
  • docs/hierarchy-contract.md — S3 hierarchy artifact consumer contract
  • docs/spotlight-contract.md — spotlight artifact contract
  • docs/data-model-and-queries.md — DynamoDB schema reference
  • docs/daily-enrichment.md — operator guide for the daily synopsis+impact job (#37); manually run from the operator's laptop pending org-managed OpenAI key
  • .planning/ — phase-by-phase design history (offline pipeline, subtopic system, hierarchy publishing, spotlight pipeline)

Models (pinned)

Use Model Why
Screening (recall-first) us.anthropic.claude-haiku-5-5 via Bedrock (effort low) Cheap, wide net
Dense scoring + synthesis us.anthropic.claude-sonnet-5-5 via Bedrock (effort low) Calibrated scores, narrative quality
Lede generation us.anthropic.claude-opus-5-5 via Bedrock (effort high) Highest fidelity for spotlight openers

Model IDs are pinned in utils/bedrock_client.py (HAIKU_MODEL / SONNET_MODEL / OPUS_MODEL), keyed per pipeline stage in MODEL_IDS_BY_STAGE; the per-model effort level is DEFAULT_EFFORT_BY_MODEL in the same file. When Bedrock content-filters a synopsis/impact call, the daily-enrichment job falls back to OpenAI gpt-5.1 via utils/openai_client.py.

Related repos

  • ReciterAI-POC — original Python pipeline POC. Superseded.
  • ReciterAI-Chatbot (local-only, paused) — chatbot iteration that informed this service. Not pushed.
  • Scholars-Profile-System — downstream consumer.
  • ReCiter — author-name disambiguation engine (upstream data source via ReciterDB).

About

ReCiter AI: topic/subtopic hierarchy, publication scoring, faculty rollups, spotlight generation. Publishes to S3 + DynamoDB for Scholars Profile System.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.