Who it is forA platform engineer whose AI agents must answer from approved institutional knowledge and must refuse when the record is silent.
The problemAgents retrieve plausible but conflicting text, so answers cannot be traced to an authoritative source or refused when knowledge is missing.
The outcomeA serving setup where agent answers name the document and publication they came from, and the agent abstains when the record does not cover the question.
What you need first
- Node 24 or newer
- npm, pnpm, or bun as your package manager
- For agent querying: a Postgres database and an embedding API key, as the README describes
Steps
- Add a Postgres database and an embedding API key, following the Serve to AI Agents section of the README.
pnpm provisionpnpm refreshpnpm serve- Follow docs/tutorials/04-serve-it.md to measure where the record declines and test an out-of-scope question.
Prompt for your agent
In the panaversity/ksor repo, run `pnpm provision` once, then `pnpm refresh`, then `pnpm serve` in <project-directory>. Report the output of each command. Verify that an agent question on <topic> returns an answer that names its source document and publication, or an abstention when the record has no coverage.
Caveat. The README gives the three commands but leaves database and embedding key setup to the Serve to AI Agents section, so read that section before running them.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for panaversity/ksor and "Serve a governed record to AI agents with a refusal floor"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer