LlmRationaleProjector

data class LlmRationaleProjector(llmOptions: <Error class: unknown class>, ai: <Error class: unknown class>) : RationaleProjector

LLM-backed RationaleProjector that turns a proposition (or group) into human-readable rationale prose grounded in the source propositions.

Security note (indirect prompt injection). Proposition text and group labels are embedded in the LLM prompt. Since this content typically comes from ingested source documents, it must be treated as untrusted: a crafted document could embed instructions the rationale model may follow. The template wraps proposition text in a labelled data block as a mitigation, but that is not a guarantee. Callers are responsible for sanitizing ingested content upstream and for not granting the rationale output undue authority.

Example usage:

val projector = LlmRationaleProjector
.withLlm(llmOptions)
.withAi(ai)

val artifact = projector.rationale(group)
println(artifact.text)

Constructors

Link copied to clipboard
constructor(llmOptions: <Error class: unknown class>, ai: <Error class: unknown class>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun rationale(group: PropositionGroup): RationaleArtifact

Explain a group of related propositions, describing how they connect.

open override fun rationale(proposition: Proposition): RationaleArtifact

Explain a single proposition.