mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-28 23:48: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(
|
||||
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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user