Browse

tldt

Updated July 24, 2026

Overview / Description

tldt (Too Long; Didn't Tokenize) solves a practical problem in LLM pipelines: inputs that are too long, too noisy, or too dangerous to pass directly to a model. It uses extractive summarization (LexRank and TextRank) to reduce token count on API payloads, uploaded documents, and crawled web content — no API key or external service required.

Beyond compression, it handles several security concerns that the OWASP LLM Top 10 flags: prompt injection detection, Unicode confusable-character attacks, PII stripping, and accidental API key exposure in text. It also converts HTML to clean Markdown and sanitizes raw text before summarization.

The tool ships as both a standalone CLI and a Go library, making it easy to drop into agents or backend services that call AI APIs directly. Useful for developers building RAG pipelines, document ingestion workflows, or any system where uncontrolled input length and content quality are real operational risks.

Used For

Developers building RAG pipelines and agent backends use tldt to shrink and sanitize oversized inputs before they reach an LLM.

Pricing

Free

$0/month

Free CLI and Go library — no API keys or token costs.

View pricing

Pros & Cons

Pros

• Reduces token count with extractive summarization (LexRank and TextRank) — no API keys or LLM calls • Detects prompt injection and Unicode confusable-character attacks • Strips PII and flags accidental API-key exposure in text • Ships as both a standalone CLI and a Go library for easy integration

Cons

• Extractive summarization keeps original sentences rather than rewriting, so it's less fluent than LLM summaries • Go-centric; teams in other stacks integrate via the CLI • Aimed at developers, not non-technical users

Questions & Answers

Alternatives

Rebuff, Lakera Guard, LLM Guard

Reviews & Ratings

0 reviews

5
0%
4
0%
3
0%
2
0%
1
0%

Sign in to rate and review tldt.

Sign in to review

No reviews yet. Be the first to review tldt!

Try tldt free
tldt | AI Tools Directory