Skip to main content

MAX_CITATION_EXCERPT

@forge/monorepo


@forge/monorepo / backend/src / MAX_CITATION_EXCERPT

Variable: MAX_CITATION_EXCERPT

const MAX_CITATION_EXCERPT: 2000 = 2000

Defined in: backend/src/core/validation.ts:35

The longest excerpt a citation may carry (#137).

A citation is evidence for a claim, not a copy of the source. Unbounded, it becomes a way to store a document inside a message — bypassing every limit that applies to documents — and a transcript whose size grows with the corpus. 2000 characters is several paragraphs: far more than a claim needs and far less than a document.