milvus/tests/scripts/restful-data/create-collection.json
Yinzuo Jiang 5a06faca39
feat: fp32 vector to fp16/bf16 vector conversion for RESTful API (#37556)
RESTful API. The influenced API are as follows:

- Handler. insert
- HandlerV1. insert/upsert
- HandlerV2. insert/upsert/search

We do not modify search API in Handler/HandlerV1 because they do not
support fp16/bf16 vectors.

module github.com/milvus-io/milvus/pkg:

Add `Float32ArrayToBFloat16Bytes()`, `Float32ArrayToFloat16Bytes()` and
`Float32ArrayToBytes()`. These method will be used in GoSDK in the
future.

issue: #37448

Signed-off-by: Yinzuo Jiang <yinzuo.jiang@zilliz.com>
Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
2024-11-24 17:46:33 +08:00

58 lines
1.2 KiB
JSON

{
"collection_name": "book",
"consistency_level": 1,
"schema": {
"autoID": false,
"description": "Test book search",
"fields": [
{
"name": "book_id",
"description": "book id",
"is_primary_key": true,
"autoID": false,
"data_type": 5
},
{
"name": "book_intro",
"description": "embedded vector of book introduction",
"autoID": false,
"data_type": 101,
"is_primary_key": false,
"type_params": [
{
"key": "dim",
"value": "2"
}
]
},
{
"name": "author_intro",
"description": "embedded vector of author introduction",
"autoID": false,
"data_type": 102,
"is_primary_key": false,
"type_params": [
{
"key": "dim",
"value": "2"
}
]
},
{
"name": "comment",
"description": "embedded vector of comment",
"autoID": false,
"data_type": 103,
"is_primary_key": false,
"type_params": [
{
"key": "dim",
"value": "2"
}
]
}
],
"name": "book"
}
}