Skip to content
sinc-LLMBook a 30-minute call

sinc-LLM: Open Source Framework for Nyquist-Compliant Prompts

An introduction to the sinc-LLM project, its concepts, architecture, setup, and contribution process.

On this page
By Mario Alexandre March 21, 2026 sinc-LLM Prompt Engineering

sinc-LLM is the open-source framework I built. It uses the Nyquist-Shannon sampling theorem to build LLM prompts. Instead of trial and error, it uses math you can check yourself.

I based the framework on my sinc-LLM paper . This article explains its structure and discusses source-code ownership and platform lock-in.

Core Concepts

I designed sinc-LLM to treat every prompt like a sampled signal. Here are the key ideas:

  • 6 Specification Bands, PERSONA, CONTEXT, DATA, CONSTRAINTS, FORMAT, TASK. Every complete prompt must include all 6.
  • Nyquist Rate, The lowest rate that still captures the full signal. For prompts, this means all 6 bands must be present.
  • Aliasing = Hallucination, When bands are missing, the model makes things up to fill the gaps. This is the same as aliasing in signal processing.
  • Band allocation , State explicit constraints and output format requirements; evaluate any token-allocation assumption for the workload.

Architecture

The framework has three parts:

1. Auto-Scatter Engine

This tool takes any raw prompt and splits it into 6 bands. It finds missing bands and suggests content to fill them. You can use it from the command line or as an HTTP API.

py -X utf8 auto_scatter.py "your raw prompt" --execute
# or
POST http://localhost:8461/execute

2. sinc JSON Format

A simple format for prompts that meet the Nyquist standard:

{
  "formula": "x(t) = ... sinc((t - nT) / T)",
  "T": "specification-axis",
  "fragments": [
    {"n": 0, "t": "PERSONA", "x": "..."},
    {"n": 1, "t": "CONTEXT", "x": "..."},
    {"n": 2, "t": "DATA", "x": "..."},
    {"n": 3, "t": "CONSTRAINTS", "x": "..."},
    {"n": 4, "t": "FORMAT", "x": "..."},
    {"n": 5, "t": "TASK", "x": "..."}
  ]
}

3. Online Transformer

A free web tool at sincllm.com that turns any raw prompt into sinc JSON format right away.

Clone the repository and start using sinc-LLM in under 5 minutes:

git clone https://github.com/mdalexandre/sinc-llm.git
cd sinc-llm
pip install -r requirements.txt
py -X utf8 auto_scatter.py "Write a blog post about AI" --execute

The auto-scatter engine splits the raw prompt into 6 bands. It finds that CONSTRAINTS, FORMAT, and DATA are missing. Then it suggests content to fill each one.

Community and Contributing

I released sinc-LLM under an open source license on GitHub. You can help in several ways:

  • Better band detection
  • Support for languages other than English
  • Plugins for popular LLM frameworks (LangChain, LlamaIndex)
  • Tests with different models
  • More studies on band weighting

Read my full paper for the math behind it. Try my online transformer to see it work.

The Bigger Question

The framework is open source for a good reason. The math is the math. The 6 bands are the 6 bands. You can read the code, fork the repo, and suggest better metrics. The argument is yours to check.

Auditing the open framework is the easy part. The hard part is asking your AI vendor if their prompt stack can be audited at all. Do they give you source code in the contract? Can you keep running after termination? Most vendors lock you in.

// Free · 10-Point Audit

Now ask your AI vendor the same questions.

You just learned the open framework. The 10-Point AI Vendor Audit asks whether the agency running your AI matches the same transparency standards: source-code ownership, audit trail, no platform lock-in. Free 16-page PDF, yes/no checklist, 15 minutes per vendor.

→ Get the audit

This is the exact JSON format that sinc-LLM uses. Paste any raw prompt at sincllm.com to generate one automatically.

{
  "formula": "x(t) = Σ x(nT) · sinc((t - nT) / T)",
  "T": "specification-axis",
  "fragments": [
    {
      "n": 0,
      "t": "PERSONA",
      "x": "You are a Open source maintainer and developer advocate. You provide precise, evidence-based analysis with exact numbers and no hedging."
    },
    {
      "n": 1,
      "t": "CONTEXT",
      "x": "This analysis is part of a production system where accuracy determines revenue. The sinc-LLM framework identifies 6 specification bands with six named fields."
    },
    {
      "n": 2,
      "t": "DATA",
      "x": "Example allocation assumptions: CONSTRAINTS=42.7%, FORMAT=26.3%, PERSONA=7.0%, CONTEXT=6.3%, DATA=3.8%, TASK=2.8%. SNR formula: 0.588 + 0.267 * G(Z1) * H(Z2) * R(Z3) * G(Z4). These allocations are illustrative assumptions, not observed quality weights."
    },
    {
      "n": 3,
      "t": "CONSTRAINTS",
      "x": "State facts directly. Never hedge with 'I think' or 'probably'. Use exact numbers for every claim. Do not suggest generic solutions. Every recommendation must be specific and verifiable. Include at least 3 MUST/NEVER rules specific to this task."
    },
    {
      "n": 4,
      "t": "FORMAT",
      "x": "Lead with the definitive answer. Use structured headers. Tables for comparisons. Numbered lists for sequences. Code blocks for implementations. No trailing summaries."
    },
    {
      "n": 5,
      "t": "TASK",
      "x": "Write the getting-started tutorial for sinc-llm showing pip install through first SNR computation"
    }
  ]
}

Install: pip install sinc-llm | GitHub | Paper

// Production AI Engineering

Build AI systems that hold up in production.

sinc-LLM designs, audits, and stabilises production AI infrastructure: from vendor evaluation and cost accountability to incident controls and MCP architecture.

See what we do →
Additional context

sinc-LLM About Blog Services

The services, methods, and examples described here do not establish an expected performance result for your workload.