MCPcopy Create free account
hub / github.com/cosdata/cosdata / create_explicit_index

Function create_explicit_index

tests/test-sparse-vector.py:61–68  ·  view source on GitHub ↗

Create sparse index using cosdata client

(collection)

Source from the content-addressed store, hash-verified

59
60
61def 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
71def create_transaction(collection):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected