Add Collection
POST/api/collections/
Create a collection.
Request
- application/json
Body
required
name Namerequired
text_embedding_model Text Embedding Model
Default value: openai:text-embedding-ada-002
text_distance_metric object
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
name Namerequired
text_embedding_model Text Embedding Modelrequired
text_distance_metric object
{
"name": "string",
"text_embedding_model": "string",
"text_distance_metric": "cosine"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Messagerequired
type Error Typerequired
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...