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
Featured in
Best AI Harness

Discovery signals

How AI and people discover Trimwise on PeerPush

Read by AI engines 30dEngines readingHow many times AI crawlers read this listing, and which engines those crawlers belong to.
267
  • ChatGPT
  • Perplexity
  • +3 other AI crawlers

Reads by these AI engines

Crawlers behind these engines read this listing on PeerPush.
PersistenceRead streakConsecutive days, counting back from today, that AI has read this listing every single day.
33 days

Read by AI every day

Read by AI every single day since launch.
Search index all-timeSearch indexTimes a search engine AI indexer, such as OAI-SearchBot, crawled this listing.
236 crawls

ChatGPT Search indexer

By OAI-SearchBot, the ChatGPT Search indexer, since launch.

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!