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

Function create_db

tests/test-tf-idf-bm25.py:47–55  ·  view source on GitHub ↗

Create collection using cosdata client

(name, description=None, dimension=20000)

Source from the content-addressed store, hash-verified

45
46
47def create_db(name, description=None, dimension=20000):
48 """Create collection using cosdata client"""
49 collection = client.create_collection(
50 name=name,
51 dimension=dimension,
52 description=description,
53 tf_idf_options={"enabled": True},
54 )
55 return collection
56
57
58def create_explicit_index(collection, k, b):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected