{"repo":"Huzaifa785/context-compressor","free":true,"listed":false,"github":"https://github.com/Huzaifa785/context-compressor","clone":"git clone https://github.com/Huzaifa785/context-compressor.git","description":"AI-powered text compression library for RAG systems and API calls. Reduce token usage by up to 50-60% while preserving semantic meaning with advanced compression strategies.","language":"Python","stars":89,"topics":["ai","anthropic","api-optimization","cost-optimization","extractive","fastapi","langchain","llm","machine-learning","neural-networks"],"license":"MIT","category":"ai-agents","readme_excerpt":"Context Compressor The most powerful AI-powered text compression library for RAG systems and API calls. Reduce token usage by up to 80% while preserving semantic meaning with state-of-the-art compression strategies. Developed by Mohammed Huzaifa 🚀 Features Core Compression Engine - 4 Advanced Compression Strategies : Extractive, Abstractive, Semantic, and Hybrid approaches using state-of-the-art AI models - Transformer-Powered : Built on BERT, BART, T5, and other cutting-edge models for maximum compression quality - Query-Aware Intelligence : Context-aware compression that prioritizes relevant content based on user queries - Multi-Model Support : Works with OpenAI GPT, Anthropic Claude, Google PaLM, and custom models Quality & Performance - Comprehensive Quality Metrics : ROUGE scores, semantic similarity, entity preservation, readability analysis - Up to 80% Token Reduction : Achieve massive cost savings while maintaining content quality - Parallel Batch Processing : High-performance processing of thousands of documents - Intelligent Caching : Advanced TTL-based caching with cleanup for optimal performance Enterprise-Ready Integrations - LangChain Integration : Seamless document transformer for RAG pipelines - OpenAI API Optimization : Direct integration with GPT models and token counting - Anthropic Claude Support : Native integration with Claude API - REST API Service : Production-ready FastAPI microservice with OpenAPI documentation - Framework Agnostic : Works with any ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Huzaifa785","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Huzaifa785/context-compressor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}