milvus/pkg/util/typeutil
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
..
backoff_timer_test.go enhance: segment alloc interceptor (#34996) 2024-08-04 07:40:15 +08:00
backoff_timer.go enhance: segment alloc interceptor (#34996) 2024-08-04 07:40:15 +08:00
cache.go Delete the user-role mapping info when deleting the user (#25988) 2023-08-04 18:37:08 +08:00
chan.go Refine delegator lifetime control (#26881) 2023-09-07 10:11:15 +08:00
convension.go feat: fp32 vector to fp16/bf16 vector conversion for RESTful API (#37556) 2024-11-24 17:46:33 +08:00
conversion_test.go feat: fp32 vector to fp16/bf16 vector conversion for RESTful API (#37556) 2024-11-24 17:46:33 +08:00
field_schema.go enhance: rename tokenizer to analyzer and check analyzer params (#37478) 2024-11-10 16:12:26 +08:00
float_util_test.go enhance: add nan and inf check (#35683) 2024-08-25 15:22:57 +08:00
float_util.go enhance: check fp16/bf16 nan or inf value (#31840) 2024-04-09 14:19:27 +08:00
gen_empty_field_data.go fix: Fix conan gdal building problem (#37338) 2024-10-31 21:04:16 +08:00
get_dim.go feat: support keyword text match (#35923) 2024-09-10 15:11:08 +08:00
hash_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
hash.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
heap_test.go enhance: timetick interceptor implementation (#34238) 2024-07-02 14:42:08 +08:00
heap.go enhance: timetick interceptor implementation (#34238) 2024-07-02 14:42:08 +08:00
id_allocator.go enhance: streaming service grpc utilities (#34436) 2024-07-15 20:49:38 +08:00
index_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
index.go feat: support keyword text match (#35923) 2024-09-10 15:11:08 +08:00
kv_pair_helper_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
kv_pair_helper.go feat: support keyword text match (#35923) 2024-09-10 15:11:08 +08:00
map_test.go Release before remove when releasing flowgraphs (#27191) 2023-09-19 11:53:22 +08:00
map.go enhance: avoid to create many timer object in the target (#36570) 2024-09-29 19:23:16 +08:00
multipart_queue_test.go enhance: add message and msgstream msgpack adaptor (#34874) 2024-07-22 20:59:42 +08:00
multipart_queue.go enhance: add message and msgstream msgpack adaptor (#34874) 2024-07-22 20:59:42 +08:00
ordered_map_test.go Move some modules from internal to public package (#22572) 2023-04-06 19:14:32 +08:00
ordered_map.go Move some modules from internal to public package (#22572) 2023-04-06 19:14:32 +08:00
pair.go fix: Disk resource is not requested for index loaded with disk (#30757) 2024-02-27 08:50:56 +08:00
schema_test.go fix: Fix conan gdal building problem (#37338) 2024-10-31 21:04:16 +08:00
schema_typed_test.go enhance: simplify reduction on single search result (#36334) 2024-09-20 11:59:10 +08:00
schema_typed.go enhance: simplify reduction on single search result (#36334) 2024-09-20 11:59:10 +08:00
schema.go enhance: disallow get raw vector data of a BM25 Function output field (#37800) 2024-11-20 14:22:30 +08:00
set_test.go feat: support rate limiter based on db and partition levels (#31070) 2024-04-12 16:01:19 +08:00
set.go enhance: allow to delete data when disk quota exhausted (#37134) 2024-10-25 16:47:29 +08:00
shared_reference_test.go enhance: streaming node client implementation (#34653) 2024-07-19 17:37:40 +08:00
shared_reference.go enhance: streaming node client implementation (#34653) 2024-07-19 17:37:40 +08:00
skip_list_test.go Move some modules from internal to public package (#22572) 2023-04-06 19:14:32 +08:00
skip_list.go Move some modules from internal to public package (#22572) 2023-04-06 19:14:32 +08:00
string_util_test.go Move some modules from internal to public package (#22572) 2023-04-06 19:14:32 +08:00
string_util.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
time_test.go Check error by Error() and NoError() for better report message (#24736) 2023-06-08 15:36:36 +08:00
time.go fix: Int64 overflow in JSON encoding (#37657) 2024-11-14 22:52:30 +08:00
type.go enhance: wal adaptor implementation (#34122) 2024-07-04 15:23:08 +08:00
version_test.go enhance: implement balancer at streaming coord (#34435) 2024-07-11 09:58:48 +08:00
version.go enhance: implement balancer at streaming coord (#34435) 2024-07-11 09:58:48 +08:00