---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

1.  [](/)
2.  [Glossary](/glossary)
3.  BM25

[Back to Glossary](/glossary)

# What is BM25

## BM25 - Best Matching 25

A ranking function used by search engines to estimate the relevance of documents to a given search query.

### How It Works

BM25 is a probabilistic retrieval model that ranks documents based on the frequency of query terms in each document, adjusted by document length and term saturation.

### Technical Details

BM25 is part of the family of scoring functions based on the probabilistic retrieval framework. It uses parameters like k1 and b to adjust term frequency saturation and document length normalization.

### Best Practices

*   Tune parameters k1 and b for your specific dataset
*   Combine with other ranking models for improved performance
*   Regularly update document collections
*   Monitor ranking performance

### Common Pitfalls

*   Ignoring parameter tuning
*   Over-relying on BM25 alone
*   Inadequate performance monitoring
*   Lack of comprehensive analysis

### Advanced Tips

*   Use hybrid ranking techniques
*   Implement BM25 optimization
*   Consider domain-specific adjustments
*   Optimize for specific use cases
*   Regularly review ranking performance

[One-click templatesStart from a templateEach template deploys a working search app on your own files.Browse templates](/templates)

[Put it to work: search your own files](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=glossary_onramp&utm_campaign=mvs_onramp)

### Related Terms

[ACID](/glossary/acid)[API](/glossary/api)[Blob Storage](/glossary/blob-storage)[CLIP](/glossary/clip)[Embedding](/glossary/embedding)