Using local LLMs for internal linking on a static site

A developer shared a practical use case for local LLMs: creating internal links for a static website with about 400 MDX pages in one subdirectory. Instead of manually reading all pages to find relevant connections, they automated the process using local models.
Workflow
The developer first used Claude Code to write a script that created a metadata map of all MDX files. This map contained basic details like title, slug, description, and tags—but not the full page content, which would have been too resource-intensive.
With the map created, they queried every page by passing one-quarter of the map at a time to a Gemma3 27B model, running each page four times. The model was asked to find relevant pages from the map that could be linked to the main page being queried.
Problem and solution
Initially, the tags in the metadata were too broad for Gemma3 to understand, resulting in random linking. The developer identified that the data quality was the issue.
To fix this, they used Claude Code again to write another script that passed every post through the model to tag it from a predefined set. While running the site locally, they verified that the predefined tag set was being respected to ensure consistency before pushing changes live.
Technical constraints
The process required careful hardware management due to heat generation. With outside temperatures at 41°C, the computer heated up quickly, forcing the developer to stop and restart the script multiple times to prevent GPU overheating on their single 3090 Ti.
After implementing the tagging system and recreating the map, the linking process worked smoothly for the pages tested. The developer plans to manually check all 400 pages before making the changes live.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Using Claude as a Structural Interrogator for Creative Projects
A developer used Claude interrogatively to write a 63,000-word sci-fi novel and build a browser game by having the AI identify gaps in world logic and character motivations rather than generating content directly.

Challenges and Lessons from Developing an ML Trading System with Claude
Developing a complex ML trading system using Claude Opus 4.5 revealed integration issues with multiple ML engines, emphasizing the importance of thorough verification during the development process.

Claude Opus Used to Create AI Political Party with Reverse-CAPTCHA
A developer built kifd.org, a fictional AI political party for Germany entirely generated by Claude Opus 4.6. The project features public system prompts for each cabinet member and a reverse-CAPTCHA that requires proving you're an AI to join.

Using Claude Cowork to Automate Gift Card Extraction from Gmail
A developer used Claude Cowork to extract 48 gift card numbers from Gmail by connecting to their account, searching emails with specific subjects, and running JavaScript scripts to automate website interaction after Python scripts triggered bot detection.