fastmcp/docs/python-sdk/fastmcp-server-transforms-search-bm25.mdx
marvin-context-protocol[bot] 902b63f676
chore: Update SDK documentation (#3313)
Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>
2026-03-02 17:27:38 -05:00

20 lines
523 B
Text

---
title: bm25
sidebarTitle: bm25
---
# `fastmcp.server.transforms.search.bm25`
BM25-based search transform.
## Classes
### `BM25SearchTransform` <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/transforms/search/bm25.py#L86" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
Search transform using BM25 Okapi relevance ranking.
Maintains an in-memory index that is lazily rebuilt when the tool
catalog changes (detected via a hash of tool names).