1. Handlebars Helpers
  2. LLM ID Random

Handlebars Helpers

LLM ID Random

Returns a random ID with a checksum character for use in prompts and LLM lists This helper is great for preventing LLM hallucinations when generating lists or collections of items that need to be referenced later in a prompt.

Uses

  • Use to generate a random ID for tasks, objects, or other entities that an LLM might need to reference
  • Use for creating unique identifiers in lists or collections managed by an LLM
  • Use to ensure that generated IDs have a checksum character to reduce errors in transcription or recognition

Usage

Helper name : llm_random_id

eg. {{#llm_random_id}}{{/llm_random_id}}

Examples

Generate A Random ID for a task list

This example shows how you can assign a random ID to a task when creating it, thus allowing the LLM to reference it later.

Example definition:

loading...

Substituted definition

loading...