Metadata-Version: 2.4
Name: tokenshrink
Version: 0.2.5
Summary: Cut your AI costs 50-80%. FAISS retrieval + LLMLingua compression + REFRAG-inspired adaptive optimization.
Project-URL: Homepage, https://tokenshrink.dev
Project-URL: Repository, https://github.com/MusashiMiyamoto1-cloud/tokenshrink
Project-URL: Documentation, https://tokenshrink.dev/docs
Author-email: Musashi <musashimiyamoto1@icloud.com>
License-Expression: MIT
License-File: LICENSE
Keywords: agents,ai,compression,context,cost-reduction,faiss,llm,llmlingua,rag,tokens
Classifier: Development Status :: 7 - Inactive
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Requires-Dist: faiss-cpu>=1.7.4
Requires-Dist: numpy>=1.24.0
Requires-Dist: sentence-transformers>=2.2.0
Provides-Extra: all
Requires-Dist: llmlingua>=0.2.0; extra == 'all'
Requires-Dist: pytest>=7.0.0; extra == 'all'
Requires-Dist: ruff>=0.1.0; extra == 'all'
Provides-Extra: compression
Requires-Dist: llmlingua>=0.2.0; extra == 'compression'
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Description-Content-Type: text/markdown

# ⚠️ TokenShrink is Deprecated

**TokenShrink has been merged into [InferShrink](https://pypi.org/project/infershrink/).**

```bash
pip install infershrink
```

InferShrink includes everything TokenShrink had — FAISS retrieval, LLMLingua compression, adaptive chunking, cross-passage deduplication — **plus** model routing, cost tracking, streaming, and OpenAI/Anthropic client wrappers.

```python
from infershrink import TokenShrink, optimize

# Retrieval (same API as before)
ts = TokenShrink()
ts.index("./docs")
result = ts.query("What are the API limits?")

# Plus: one-line LLM cost optimization
import openai
client = optimize(openai.Client())
```

**Migration:** Replace `from tokenshrink import TokenShrink` with `from infershrink import TokenShrink`. That's it.

- **InferShrink PyPI:** https://pypi.org/project/infershrink/
- **InferShrink GitHub:** https://github.com/MusashiMiyamoto1-cloud/infershrink
