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

Function create_db_old

tests/load-test.py:96–107  ·  view source on GitHub ↗
(vector_db_name, dimensions, max_val, min_val)

Source from the content-addressed store, hash-verified

94
95# Function to create database (collection)
96def create_db_old(vector_db_name, dimensions, max_val, min_val):
97 url = f"{base_url}/collections"
98 data = {
99 "vector_db_name": vector_db_name,
100 "dimensions": dimensions,
101 "max_val": max_val,
102 "min_val": min_val,
103 }
104 response = requests.post(
105 url, headers=generate_headers(), data=json.dumps(data), verify=False
106 )
107 return response.json()
108
109
110# Function to find a database (collection) by Id

Callers

nothing calls this directly

Calls 1

generate_headersFunction · 0.70

Tested by

no test coverage detected