Laya-compactor is a new open-source tool designed to reduce the number of tokens sent to large language models in Retrieval-Augmented Generation (RAG) pipelines. It works by scoring and filtering retrieved documents locally, keeping only the most relevant ones and cutting up to 70% of tokens without impacting answer quality on benchmarks like SQuAD and HotpotQA. The tool offers a Python API and integrations with popular frameworks like LangChain and LlamaIndex, providing a free alternative to API-based decision models. AI
IMPACT Reduces RAG costs and improves efficiency by locally filtering irrelevant context before LLM processing.
RANK_REASON The item describes a new open-source tool for optimizing LLM pipelines, not a frontier model release or significant industry event.
- GLM-5.3-flashX
- HotpotQA
- Jevíčko
- LangChain
- laya-compactor
- Lightbend Inc.
- LlamaIndex
- Luna
- OpenAI
- SQuAD
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →