LIVE Watch Now Punjabi News Channel from Pakistan
Breaking
Sapphire Fibres Joins Bid for FESCO PrivatisationCTPL Launches Campaign for Mandatory Side-View MirrorsGovernment and Industry Disagree on New Vehicle Tariff PolicyHBL Expands Services in Sindh with Prestige Lounges and Trade CentersSafe Ways to Watch a Solar EclipseNaqvi Sets September 30 Deadline for Islamabad Safe City ExpansionPIA Boosts Flights for Students, Expatriates Returning to ChinaCommissioner Launches MTP Campaign and District Accounts OfficeGovernment Streamlines Approval for Small Rooftop Solar SystemsSindh Labs Declare Five IV Sets SubstandardPTA Introduces New eSIM Pricing Policy Effective Mid-AugustMedico-legal board reconstituted for exhumation of Mir Raza Ali’s bodyGovernment Aims to Overhaul Gas Sector with New Pricing ModelSBP Tightens Rules for Prize Bond ReportingUEFA sticks to World Cup boycott despite FIFA apologyExtreme heat hits central and eastern Europe, breaking temperature recordsBabar Azam praises Pakistan team’s adaptability after West Indies series winPSX sees sharp decline as selling resumesPCB bans Hamza Nazar for two years over visa misrepresentationOpenAI unveils Jony Ive’s smart speaker designSapphire Fibres Joins Bid for FESCO PrivatisationCTPL Launches Campaign for Mandatory Side-View MirrorsGovernment and Industry Disagree on New Vehicle Tariff PolicyHBL Expands Services in Sindh with Prestige Lounges and Trade CentersSafe Ways to Watch a Solar EclipseNaqvi Sets September 30 Deadline for Islamabad Safe City ExpansionPIA Boosts Flights for Students, Expatriates Returning to ChinaCommissioner Launches MTP Campaign and District Accounts OfficeGovernment Streamlines Approval for Small Rooftop Solar SystemsSindh Labs Declare Five IV Sets SubstandardPTA Introduces New eSIM Pricing Policy Effective Mid-AugustMedico-legal board reconstituted for exhumation of Mir Raza Ali’s bodyGovernment Aims to Overhaul Gas Sector with New Pricing ModelSBP Tightens Rules for Prize Bond ReportingUEFA sticks to World Cup boycott despite FIFA apologyExtreme heat hits central and eastern Europe, breaking temperature recordsBabar Azam praises Pakistan team’s adaptability after West Indies series winPSX sees sharp decline as selling resumesPCB bans Hamza Nazar for two years over visa misrepresentationOpenAI unveils Jony Ive’s smart speaker design
◕ SundialUpdated 21 hours ago
Technology

New Tool Reduces Claude Token Usage by 99%

Marktechpost has released an open-source extension called Token Saver to significantly reduce token usage for large PDF documents with Claude Desktop.

Add Sun News on Google News
New Tool Reduces Claude Token Usage by 99%
Photo: ProPakistani

Key Takeaways

  • Marktechpost has released Token Saver, an open-source extension for Claude Desktop.
  • The tool cuts token usage significantly, reducing it by up to 99% for large PDF documents.
  • Token Saver works by sending only relevant sections of the document to Claude.

Marktechpost has introduced Token Saver, an open-source extension designed to drastically reduce the number of tokens used when working with large PDF documents. The tool, currently at version 1.0 and released under the MIT license, aims to address a common issue faced by users who repeatedly question AI models about extensive documents.

According to Marktechpost, adding a 200-page PDF to a conversation does not create only a one-time context cost; the document remains part of the ongoing discussion, increasing token usage as the dialogue continues. The report also notes that processing large PDFs can involve both extracted text and page images, with each page potentially containing between 1,500 to 3,000 tokens.

New Tool Reduces Claude Token Usage by 99%

Token Saver operates by running as a local Model Context Protocol (MCP) server, allowing Claude Desktop to use it as a document-search tool. The PDF itself remains on the user’s computer, and when a question is asked, Token Saver searches the document locally before sending only relevant sections to Claude. This approach ensures that Claude receives a smaller collection of page-cited passages rather than the complete document.

AdvertisementFollow Sun NewsWatch Live

The Hybrid RAG system employed by Token Saver combines two retrieval methods: BM25 keyword search and semantic search. The former uses SQLite FTS5 for finding passages containing relevant terms, while the latter employs the local all-MiniLM-L6-v2 embedding model to find passages based on meaning. Both methods are weighted at 0.4 and 0.6 respectively, with the embedding component being optional.

New Tool Reduces Claude Token Usage by 99%

The tool’s eight-stage process runs locally before information reaches Claude. It includes stages such as extraction, chunking, scoring, gating, deduplication, trimming, budgeting, and envelope addition. This ensures that only relevant sections are sent to Claude, significantly reducing token usage. The report states that up to 99.4% token savings can be achieved.

Token Saver was developed by Arnav Rai, a computer science student at Rochester Institute of Technology, during his internship under the supervision of Jean-Marc Mommessin and Asif Razzaq. The tool is part of Marktechpost AI Media Inc.'s efforts to enhance user experience with Claude Desktop.

While prompt caching and Claude Projects can reduce some overhead, Marktechpost argues that they do not eliminate the need to send the document to the provider. Token Saver addresses this issue by ensuring that only relevant sections are sent, thereby saving tokens and improving efficiency.

Sources