Create collection using cosdata client
(name, description=None, dimension=20000)
| 45 | |
| 46 | |
| 47 | def 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 | |
| 58 | def create_explicit_index(collection, k, b): |
no outgoing calls
no test coverage detected