DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to serve a governed record to AI agents with a refusal floor with Ksor

Provision a Postgres-backed serve path so agents query the record and abstain when it does not answer.

Short answer: Add a Postgres database and an embedding API key, following the Serve to AI Agents section of the README; then pnpm provision; pnpm refresh. All steps.

  • Research
  • Advanced
  • 60 minutes
  • From the README
  • Claude Code
  • Cursor

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

  1. Add a Postgres database and an embedding API key, following the Serve to AI Agents section of the README.
  2. pnpm provision
  3. pnpm refresh
  4. pnpm serve
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer