mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-08-17 16:07:18 +02:00
1.0 KiB
1.0 KiB
kb/
Knowledge base grounding content for the AI contact-screening classifier in api/
(api/services/AiScreeningClient.ts, api/services/KnowledgeBase.ts).
Convention
- One topic per
.mdfile. Plain markdown, no required frontmatter — write it as canonical Q&A/policy content a human would also want to read. - The filename is the citable reference: the classifier's
kb_referenceoutput field is constrained to exactly the set of.mdfilenames present here (plus"none"), so the model can only ever cite a document that actually exists — never a hallucinated one. - Only some classification categories are instructed to ground their answers here rather than
answer freely (see
api/prompts/contact-screening.mdfor the exact list). For those categories, if nothing here covers the question, the classifier is instructed to defer to a human (kb-gaptag) instead of inventing policy. - Files are loaded once when the
api/process starts. Adding or editing a file here requires restarting the API server to take effect.