* Increase maximum side navigation depth by one * Break up Text Search guide into multiple pages * Update links to Text Search guide * Broken link * One more broken link * One more broken link * Shorten title
1.3 KiB
title, weight
| title | weight |
|---|---|
| BM25 | 20 |
Server-side Inference: BM25
BM25 (Best Matching 25) is a ranking function for text search. BM25 uses sparse vectors that represent documents, where each dimension corresponds to a word. Qdrant can generate these sparse embeddings from input text directly on the server.
While upserting points, provide the text and the qdrant/bm25 embedding model:
{{< code-snippet path="/documentation/headless/snippets/inference/ingest/" >}}
Qdrant uses the model to generate the embeddings and stores the point with the resulting vector. Retrieving the point shows the embeddings that were generated:
....
"my-bm25-vector": {
"indices": [
112174620,
177304315,
662344706,
771857363,
1617337648
],
"values": [
1.6697302,
1.6697302,
1.6697302,
1.6697302,
1.6697302
]
}
....
]
Similarly, use the BM25 model at query time by providing the query string and the qdrant/bm25 embedding model:
{{< code-snippet path="/documentation/headless/snippets/inference/query/" >}}
Read more about full-text search with BM25 in the text search guide.