@@ -107,6 +107,7 @@ def create_collection(
107
107
embedding_model_id : str ,
108
108
capacity : int = 1000 ,
109
109
name : Optional [str ] = None ,
110
+ type : Optional [CollectionType ] = None ,
110
111
description : Optional [str ] = None ,
111
112
metadata : Optional [Dict [str , str ]] = None ,
112
113
) -> Collection :
@@ -125,6 +126,7 @@ def create_collection(
125
126
embedding_model_id = embedding_model_id ,
126
127
capacity = capacity ,
127
128
name = name or "" ,
129
+ type = type or CollectionType .TEXT ,
128
130
description = description or "" ,
129
131
metadata = metadata or {},
130
132
)
@@ -137,6 +139,7 @@ async def a_create_collection(
137
139
embedding_model_id : str ,
138
140
capacity : int = 1000 ,
139
141
name : Optional [str ] = None ,
142
+ type : Optional [CollectionType ] = None ,
140
143
description : Optional [str ] = None ,
141
144
metadata : Optional [Dict [str , str ]] = None ,
142
145
) -> Collection :
@@ -156,6 +159,7 @@ async def a_create_collection(
156
159
embedding_model_id = embedding_model_id ,
157
160
capacity = capacity ,
158
161
name = name or "" ,
162
+ type = type or CollectionType .TEXT ,
159
163
description = description or "" ,
160
164
metadata = metadata or {},
161
165
)
0 commit comments