mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-08 04:18:32 +02:00
minicoil tutorial
This commit is contained in:
+1
@@ -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.
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
```python
|
||||
client.create_collection(
|
||||
collection_name="{bm25_collection_name}",
|
||||
sparse_vectors_config={
|
||||
"bm25": models.SparseVectorParams(
|
||||
modifier=models.Modifier.IDF
|
||||
)
|
||||
}
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user