Skip to main content

Module llm

Module llm 

Source
Expand description

Local LLM content augmentation plugin. Local LLM content plugin.

Invokes a local LLM (Ollama, llama.cpp) at build time to auto-generate:

  • alt text for images missing it
  • meta description for pages where it’s empty or < 50 chars
  • JSON-LD description fields from page content

Configured via the [ai] section in ssg.toml:

[ai]
model = "llama3"
endpoint = "http://localhost:11434"

Graceful fallback: if no LLM is reachable, logs a warning and skips.

Structs§

AiFixReport
Aggregated report from the agentic AI fix pipeline.
AiFixResult
Result of the agentic AI fix pipeline for a single file.
AuditReport
Aggregated readability audit report.
FileAuditResult
Result of auditing a single file’s readability.
LlmConfig
Configuration for the LLM plugin.
LlmPlugin
Plugin that uses a local LLM to augment content at build time.
ReadabilityAudit
Readability metrics for a text passage.

Enums§

ReadabilityFormula
Readability formula selection based on content language.