mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-30 16:38:31 +02:00
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:
@@ -1009,12 +1009,11 @@ client = QdrantClient(url="http://localhost:6333")
|
|||||||
|
|
||||||
client.create_collection(
|
client.create_collection(
|
||||||
collection_name="{collection_name}",
|
collection_name="{collection_name}",
|
||||||
sparse_vectors={
|
vectors_config={},
|
||||||
"text": models.SparseVectorIndexParams(
|
sparse_vectors_config={
|
||||||
index=models.SparseVectorIndexType(
|
"text": models.SparseVectorParams(
|
||||||
on_disk=False,
|
index=models.SparseIndexParams(on_disk=False),
|
||||||
),
|
)
|
||||||
),
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
@@ -1169,7 +1168,8 @@ client = QdrantClient(url="http://localhost:6333")
|
|||||||
|
|
||||||
client.create_collection(
|
client.create_collection(
|
||||||
collection_name="{collection_name}",
|
collection_name="{collection_name}",
|
||||||
sparse_vectors={
|
vectors_config={},
|
||||||
|
sparse_vectors_config={
|
||||||
"text": models.SparseVectorParams(
|
"text": models.SparseVectorParams(
|
||||||
modifier=models.Modifier.IDF,
|
modifier=models.Modifier.IDF,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user