# Open Source: llmslim – Semantic Prompt Compression for LLM Applications

> Source: <https://discuss.huggingface.co/t/open-source-llmslim-semantic-prompt-compression-for-llm-applications/176833#post_1>
> Published: 2026-06-15 23:20:59+00:00

Published my first open-source Python package: llmslim.

It compresses prompts, chat histories, and RAG contexts using semantic chunking + extractive ranking before sending them to an LLM.

Example:

2847 tokens → 1138 tokens (60% reduction)

Looking for feedback from the HF community on:

Contributions and criticism welcome.
