🔎
SEOPython

Bm25 Ranking

by asgard-ai-platform

Bm25 Ranking is an SEO skill for Claude Code, published by asgard-ai-platform in skills.

228 stars28 forkson asgard-ai-platform/skillsAdded 2026/09/03Repository updated 2026/06/06
ai-agentanthropicclaudeclaude-agent-skillsclaude-codecoding-agentknowledge-basemcpmethodologyopen-sourceprompt-engineeringskillstaiwan
Install in seconds
Install Bm25 Ranking
Copy Bm25 Ranking into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/asgard-ai-platform/skills/tree/main/algo-ecom-bm25 ~/.claude/skills/algo-ecom-bm25

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/asgard-ai-platform/skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
algo-ecom-bm25/SKILL.md in asgard-ai-platform/skills
Installs to
~/.claude/skills/algo-ecom-bm25
Collection
One of 25 skills cataloged from this repository
Category
SEO179 skills

What Bm25 Ranking does

Bm25 Ranking implements the BM25 text ranking function for e-commerce product search. Use it to score and rank listings by keyword relevance, especially when replacing basic TF-IDF or tuning search results.

Bm25 Ranking is cataloged under SEO on DirSkills. Bm25 Ranking comes from a repository tagged ai-agent, anthropic, claude, claude-agent-skills and claude-code.

Documentation

README

BM25 Ranking Function

Overview

BM25 (Best Matching 25) is an improved TF-IDF ranking function that adds term frequency saturation and document length normalization. Score = Σ IDF(t) × (TF(t,d) × (k₁+1)) / (TF(t,d) + k₁ × (1 - b + b × |d|/avgdl)). Standard parameters: k₁=1.2, b=0.75. The backbone of most text search engines (Elasticsearch, Solr).

When to Use

Trigger conditions:

  • Building product search with text-based relevance ranking
  • Replacing basic TF-IDF with better document length normalization
  • Tuning search relevance in Elasticsearch/Solr

When NOT to use:

  • When semantic similarity matters more than keyword matching (use embeddings)
  • For single-field exact matching (simpler methods suffice)

Algorithm

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Bm25 Ranking

  • What else does asgard-ai-platform publish alongside Bm25 Ranking?

    Bm25 Ranking is one of 25 skills that DirSkills catalogs from asgard-ai-platform/skills, the repository it ships in. Its siblings there include ARIMA Time Series Model, Ad Bidding Strategies and Ad Budget Allocation. Each one is a separate skill with its own page in this directory, installs the same way Bm25 Ranking does, and is maintained by asgard-ai-platform in that same repository. The rest of the collection is listed on the asgard-ai-platform/skills page.

  • How does Bm25 Ranking compare to other SEO skills?

    Bm25 Ranking ranks #169 by stars among the 179 SEO skills in this catalog. The most-starred ones next to it are App Store Optimization, Answer Engine Optimization and SEO Analysis. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Bm25 Ranking against them. Open each page to compare what they document and how they install.

More from asgard-ai-platform/skills

Bm25 Ranking is one of 25 skills cataloged on DirSkills from asgard-ai-platform/skills.

See all 25 skills
📈
7h ago

ARIMA Time Series Model

ARIMA Time Series Model builds ARIMA or SARIMA forecasts from univariate historical data. Use it to test stationarity, choose parameters, and produce predictions with confidence intervals.
Data
22828
📈
7h ago

Ad Bidding Strategies

Ad Bidding Strategies helps choose and tune manual CPC, Target CPA, Target ROAS, and other bidding approaches. Use it when selecting a strategy, setting automated bids, or checking whether conversion data is sufficient.
AI Engineering
22828
📈
7h ago

Ad Budget Allocation

Ad Budget Allocation optimizes spend across multiple campaigns using marginal returns analysis. Use it to split a fixed ad budget, rebalance after performance changes, or maximize ROAS under budget constraints.
Data
22828
⛓️
7h ago

Blockchain Fundamentals

Blockchain Fundamentals explains distributed ledger architecture, consensus, and block structure, and helps decide when blockchain is appropriate. It is used when evaluating a blockchain use case or choosing a permissioned or public design.
AI Engineering
22828
📈
7h ago

CTR Prediction Model

CTR Prediction Model estimates the probability that an ad will be clicked from user, query, ad, and position features. Use it for ad ranking, bid optimization, or evaluating creative performance.
AI Engineering
22828
💰
7h ago

Compensation Benchmarking

Compensation Benchmarking compares internal pay to market survey data using compa-ratios and percentile positioning. Use it to assess market competitiveness, build salary bands, and check pay equity.
Data
22828