fix: Qdrant sparse creation indexing.md (#1290)

* fix: Qdrant sparse creation indexing.md

Signed-off-by: Anush008 <anushshetty90@gmail.com>

* fix: sparse modifier

Signed-off-by: Anush008 <anushshetty90@gmail.com>

---------

Signed-off-by: Anush008 <anushshetty90@gmail.com>
This commit is contained in:
Anush
2024-11-15 15:01:12 +05:30
committed by GitHub
parent a6f0981445
commit ea24e9eb41
@@ -1009,12 +1009,11 @@ client = QdrantClient(url="http://localhost:6333")
client.create_collection(
collection_name="{collection_name}",
sparse_vectors={
"text": models.SparseVectorIndexParams(
index=models.SparseVectorIndexType(
on_disk=False,
),
),
vectors_config={},
sparse_vectors_config={
"text": models.SparseVectorParams(
index=models.SparseIndexParams(on_disk=False),
)
},
)
```
@@ -1169,7 +1168,8 @@ client = QdrantClient(url="http://localhost:6333")
client.create_collection(
collection_name="{collection_name}",
sparse_vectors={
vectors_config={},
sparse_vectors_config={
"text": models.SparseVectorParams(
modifier=models.Modifier.IDF,
),