Trimwise

Trimwise

Smart text trimming for LLM prompts backed by research.

aakashhowlader
@aakashhowlader
Published on Aug 10, 2026
Visit site
1 PeerPush
🔥
Awarded
Trending Now
PeerPush

Details

Pricing
Free

Discovery signals

How AI and people discover Trimwise on PeerPush

Read by AI todayLast AI readHow long ago an AI crawler last read this listing.
6 hours ago
  • ChatGPT
  • Claude
  • Perplexity

3 AI engines

An AI crawler last read this listing 6h ago. 3 AI engines read it today.
AI-readyAI-readyWhether this product carries the structured data - use cases, audiences, platforms - that lets AI match it to the right questions.
Structured

Described for AI to match

Described for AI with use cases, audiences and pricing so assistants can match it to the right questions.
Discoverable nowDiscoverable nowWhether this product is queryable through the PeerPush API and MCP right now.
Live

Via the PeerPush API and MCP

Queryable through the PeerPush API, MCP and semantic search from day one.

About Trimwise

Trimwise is a light-weight, extractive Python library for creating compact, high-signal excerpts from documents, blog posts, search results, logs, and tool outputs when assembling a LLM prompt. Instead of the usual `text[:N]` which keeps only the first N characters or tokens, Trimwise selects useful fragments from across the document, returns them in source order, and guarantees that the measured result stays within your token, word, or character limit. This is especially useful when an agent has several sources but cannot place every source in the context window. Rather than assume the first N characters have all the information in each article, report, note, or search result, Trimwise gives each source a smarter evidence budget while leaving your system prompt, instructions, examples, and output schema untouched. Trimwise also allows you to trim text according to a given query - that means, the parts of the text kept in the final excerpt will adjust so that it provides the richest signal for that query. This allows you to improve your response quality when working with RAG systems where long form documents dominate without needing to write a separate layer to handle what gets kept from a retrieved source. Trimwise borrows heavily from established research. Read more on that [here](https://trimwise.readthedocs.io/en/latest/research-foundations/). Questions, feedback and feature requests are welcome! Do star the repo if you find it useful.

Screenshots

Screenshot 1 of Trimwise
Screenshot 2 of Trimwise
Screenshot 3 of Trimwise
Screenshot 4 of Trimwise
Screenshot 5 of Trimwise

Reviews (0)

No reviews yet. Be the first to rate this product!

Comments (1)

aakashhowlader
@aakashhowlader

We have been using Trimwise at Tenwrite and I hope other AI developers find it useful too!