(vector_db_name, dimensions, max_val, min_val)
| 94 | |
| 95 | # Function to create database (collection) |
| 96 | def 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 |
nothing calls this directly
no test coverage detected