CRoM (Context Rot Mitigation)-EfficientLLM is a powerful Python toolkit for enhancing the context provided to Large Language Models (LLMs). It features advanced tools for intelligently selecting, re-ranking, and managing text chunks, ensuring maximum relevance within defined context limits to minimize performance drift.
CRoM (Context Rot Mitigation)-EfficientLLM is a robust Python toolkit crafted for optimizing the context provided to Large Language Models (LLMs). This innovative toolkit enables developers to effectively select, re-rank, and manage text chunks, ensuring compatibility with a model's context budget while maximizing relevance and minimizing performance drift.
Ideal for developers engaged in RAG (Retrieval-Augmented Generation) pipelines, CRoM enhances the usability of limited context windows, empowering users to achieve efficient and effective interactions with language models.
FlashRank), compression (LLMLingua), and drift analysis (Evidently).Experience CRoM live without any installation:
🎯 Try CRoM Demo on Hugging Face Spaces
The interactive demo allows users to:
For evaluation, the package includes a powerful crom-bench CLI:
# Default End-to-End (Search→Rerank→Pack→Mock LLM)
crom-bench e2e --budget 0.3
# Optional: High-precision configuration with plugins
crom-bench e2e --budget 0.3 \
--use-flashrank --flashrank-model ms-marco-TinyBERT-L-2-v2 \
--use-llmlingua --compress-ratio=0.6 \
--use-evidently
Freely extend the capabilities of LLMs with CRoM, facilitating more relevant responses within the constraints of context budgets.
No comments yet.
Sign in to be the first to comment.