minicoil tutorial

This commit is contained in:
Евгения Суходольская
2025-07-04 11:44:17 +02:00
parent 309d7151da
commit 3d318f0765
14 changed files with 275 additions and 6 deletions
@@ -0,0 +1 @@
This code snippet creates a collection configured for BM25-based lexical retrieval. It defines a sparse named vector with the IDF modifier enabled,ensuring that the Inverse Document Frequency, a core component of the BM25 scoring formula, is calculated on Qdrant’s side. This setup allows Qdrant to perform BM25-style retrieval based on keyword frequency and rarity.
@@ -0,0 +1,10 @@
```python
client.create_collection(
collection_name="{bm25_collection_name}",
sparse_vectors_config={
"bm25": models.SparseVectorParams(
modifier=models.Modifier.IDF
)
}
)
```