LLMSlim v0.3.0 - Cut LLM token costs 40-70% with offline prompt compression
by•
v0.3.0 ships hybrid prompt compression: offline TF-IDF extraction pre-prunes context, then an optional LLM rewrite pass semantically optimizes what remains. Result: 40-70% fewer tokens billed, sub-30ms CPU latency, and 100% retention of system directives, code blocks, and JSON schemas. Works with OpenAI, Anthropic, Gemini, LangChain, LlamaIndex, Ollama and more. Zero dependencies. Pure Python. pip install llmslim

p/runevr
p/reso
p/google-cloud-platform
p/producthunt
p/meridian-16
p/gatrends
p/dino-kids
p/expert-chase-deleted-1107920
p/magic-lasso-adblock
p/problemhunt
p/dex-by-exmergo
p/kodlo
p/neoagent
p/pretty-prompt
p/skim-5
p/slay-3
p/palance
p/mindpal-ai
Replies