Create sparse index using cosdata client
(collection)
| 59 | |
| 60 | |
| 61 | def create_explicit_index(collection): |
| 62 | """Create sparse index using cosdata client""" |
| 63 | index = collection.create_sparse_index( |
| 64 | name=collection.name, |
| 65 | quantization=64, |
| 66 | sample_threshold=1000, |
| 67 | ) |
| 68 | return index |
| 69 | |
| 70 | |
| 71 | def create_transaction(collection): |