From 48e4b60147684bd070382189422a4a364c677830 Mon Sep 17 00:00:00 2001
From: liliu-z
Date: Fri, 6 Jan 2023 18:36:11 +0800
Subject: [PATCH] Add Copyright
Signed-off-by: liliu-z
---
CMakeLists.txt | 11 +++++++++++
benchmark/CMakeLists.txt | 2 +-
benchmark/benchmark_base.h | 2 +-
benchmark/hdf5/benchmark_hdf5.h | 2 +-
benchmark/hdf5/benchmark_knowhere.h | 2 +-
benchmark/hdf5/benchmark_knowhere_binary.cpp | 2 +-
.../hdf5/benchmark_knowhere_binary_range.cpp | 2 +-
benchmark/hdf5/benchmark_knowhere_float.cpp | 2 +-
.../hdf5/benchmark_knowhere_float_range.cpp | 2 +-
benchmark/utils.h | 2 +-
include/knowhere/binaryset.h | 11 +++++++++++
include/knowhere/bitsetview.h | 11 +++++++++++
include/knowhere/comp/Timer.h | 2 +-
include/knowhere/comp/brute_force.h | 11 +++++++++++
include/knowhere/comp/index_param.h | 2 +-
include/knowhere/comp/knowhere_config.h | 11 +++++++++++
include/knowhere/comp/thread_pool.h | 2 +-
include/knowhere/config.h | 11 +++++++++++
include/knowhere/dataset.h | 11 +++++++++++
include/knowhere/expected.h | 11 +++++++++++
include/knowhere/factory.h | 11 +++++++++++
include/knowhere/feder/DiskANN.h | 2 +-
include/knowhere/feder/HNSW.h | 2 +-
include/knowhere/feder/IVFFlat.h | 2 +-
include/knowhere/file_manager.h | 11 +++++++++++
include/knowhere/index.h | 11 +++++++++++
include/knowhere/index_node.h | 11 +++++++++++
.../knowhere/index_node_thread_pool_wrapper.h | 11 +++++++++++
include/knowhere/log.h | 11 +++++++++++
include/knowhere/object.h | 11 +++++++++++
src/common/comp/Timer.cc | 2 +-
src/common/comp/brute_force.cc | 19 +++++++------------
src/common/comp/knowhere_config.cc | 11 +++++++++++
src/common/factory.cc | 11 +++++++++++
src/common/log.cc | 11 +++++++++++
src/common/metric.h | 11 +++++++++++
src/common/range_util.cc | 2 +-
src/common/range_util.h | 2 +-
src/index/annoy/annoy.cc | 11 +++++++++++
src/index/annoy/annoy_config.h | 11 +++++++++++
src/index/diskann/diskann.cc | 11 +++++++++++
src/index/diskann/diskann_config.h | 11 +++++++++++
src/index/flat/flat.cc | 11 +++++++++++
src/index/flat/flat_config.h | 11 +++++++++++
src/index/flat_gpu/flat_gpu.cc | 11 +++++++++++
src/index/flat_gpu/flat_gpu_config.h | 11 +++++++++++
src/index/hnsw/hnsw.cc | 11 +++++++++++
src/index/hnsw/hnsw_config.h | 11 +++++++++++
src/index/ivf/ivf.cc | 11 +++++++++++
src/index/ivf/ivf_config.h | 11 +++++++++++
src/index/ivf_gpu/ivf_gpu.cc | 11 +++++++++++
src/index/ivf_gpu/ivf_gpu_config.h | 11 +++++++++++
src/io/FaissIO.cc | 2 +-
src/io/FaissIO.h | 2 +-
src/simd/distances_avx.cc | 11 +++++++++++
src/simd/distances_avx.h | 11 +++++++++++
src/simd/distances_avx512.cc | 11 ++++++++++-
src/simd/distances_avx512.h | 11 +++++++++++
src/simd/distances_sse.cc | 11 +++++++++++
src/simd/distances_sse.h | 11 +++++++++++
src/simd/hook.cc | 10 ++++++++++
src/simd/hook.h | 11 +++++++++++
src/simd/instruction_set.h | 11 +++++++++++
tests/ut/CMakeLists.txt | 11 +++++++++++
tests/ut/local_file_manager.h | 11 +++++++++++
tests/ut/test_config.cc | 11 +++++++++++
tests/ut/test_diskann.cc | 11 +++++++++++
tests/ut/test_knowhere_init.cc | 11 +++++++++++
tests/ut/test_range_util.cc | 11 +++++++++++
tests/ut/test_search.cc | 11 +++++++++++
tests/ut/utils.h | 11 +++++++++++
thirdparty/faiss/faiss/IndexIVFThreadSafe.cpp | 2 +-
.../faiss/faiss/utils/BinaryDistance.cpp | 2 +-
thirdparty/faiss/faiss/utils/BinaryDistance.h | 2 +-
thirdparty/faiss/faiss/utils/jaccard-inl.h | 2 +-
.../faiss/faiss/utils/substructure-inl.h | 2 +-
.../faiss/faiss/utils/superstructure-inl.h | 2 +-
thirdparty/gtest/CMakeLists.txt | 2 +-
78 files changed, 582 insertions(+), 40 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 65411c5f0..be8dc7ebf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,3 +1,14 @@
+# Copyright (C) 2019-2023 Zilliz. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software distributed under the License
+# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+# or implied. See the License for the specific language governing permissions and limitations under the License
+
cmake_minimum_required(VERSION 3.2)
project(knowhere CXX C)
diff --git a/benchmark/CMakeLists.txt b/benchmark/CMakeLists.txt
index 8874e908b..3896126a7 100644
--- a/benchmark/CMakeLists.txt
+++ b/benchmark/CMakeLists.txt
@@ -1,4 +1,4 @@
-# Copyright (C) 2019-2020 Zilliz. All rights reserved.
+# Copyright (C) 2019-2023 Zilliz. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
diff --git a/benchmark/benchmark_base.h b/benchmark/benchmark_base.h
index d2ff02863..3a01fc63d 100644
--- a/benchmark/benchmark_base.h
+++ b/benchmark/benchmark_base.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/benchmark/hdf5/benchmark_hdf5.h b/benchmark/hdf5/benchmark_hdf5.h
index 4a8ee2815..5d1c3625f 100644
--- a/benchmark/hdf5/benchmark_hdf5.h
+++ b/benchmark/hdf5/benchmark_hdf5.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/benchmark/hdf5/benchmark_knowhere.h b/benchmark/hdf5/benchmark_knowhere.h
index 008aed0e2..efddfba21 100644
--- a/benchmark/hdf5/benchmark_knowhere.h
+++ b/benchmark/hdf5/benchmark_knowhere.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/benchmark/hdf5/benchmark_knowhere_binary.cpp b/benchmark/hdf5/benchmark_knowhere_binary.cpp
index d0bf3d10d..51bb75fcf 100644
--- a/benchmark/hdf5/benchmark_knowhere_binary.cpp
+++ b/benchmark/hdf5/benchmark_knowhere_binary.cpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/benchmark/hdf5/benchmark_knowhere_binary_range.cpp b/benchmark/hdf5/benchmark_knowhere_binary_range.cpp
index da660704c..c5f10cdf0 100644
--- a/benchmark/hdf5/benchmark_knowhere_binary_range.cpp
+++ b/benchmark/hdf5/benchmark_knowhere_binary_range.cpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/benchmark/hdf5/benchmark_knowhere_float.cpp b/benchmark/hdf5/benchmark_knowhere_float.cpp
index ec075592e..48fd5a138 100644
--- a/benchmark/hdf5/benchmark_knowhere_float.cpp
+++ b/benchmark/hdf5/benchmark_knowhere_float.cpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/benchmark/hdf5/benchmark_knowhere_float_range.cpp b/benchmark/hdf5/benchmark_knowhere_float_range.cpp
index 753a2d283..f0598203f 100644
--- a/benchmark/hdf5/benchmark_knowhere_float_range.cpp
+++ b/benchmark/hdf5/benchmark_knowhere_float_range.cpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/benchmark/utils.h b/benchmark/utils.h
index 0ad8b9482..f154d59f7 100644
--- a/benchmark/utils.h
+++ b/benchmark/utils.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/include/knowhere/binaryset.h b/include/knowhere/binaryset.h
index cec6ea533..0c399a401 100644
--- a/include/knowhere/binaryset.h
+++ b/include/knowhere/binaryset.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef BINARYSET_H
#define BINARYSET_H
diff --git a/include/knowhere/bitsetview.h b/include/knowhere/bitsetview.h
index 51fbc4128..512364887 100644
--- a/include/knowhere/bitsetview.h
+++ b/include/knowhere/bitsetview.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef BITSET_H
#define BITSET_H
diff --git a/include/knowhere/comp/Timer.h b/include/knowhere/comp/Timer.h
index 7a2700fcd..0717cbc94 100644
--- a/include/knowhere/comp/Timer.h
+++ b/include/knowhere/comp/Timer.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/include/knowhere/comp/brute_force.h b/include/knowhere/comp/brute_force.h
index f1aa2e4c5..7139348cc 100644
--- a/include/knowhere/comp/brute_force.h
+++ b/include/knowhere/comp/brute_force.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef BRUTE_FORCE_H
#define BRUTE_FORCE_H
#include "knowhere/bitsetview.h"
diff --git a/include/knowhere/comp/index_param.h b/include/knowhere/comp/index_param.h
index 492b7fd49..cbd84ee50 100644
--- a/include/knowhere/comp/index_param.h
+++ b/include/knowhere/comp/index_param.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/include/knowhere/comp/knowhere_config.h b/include/knowhere/comp/knowhere_config.h
index 10854749f..c9103acca 100644
--- a/include/knowhere/comp/knowhere_config.h
+++ b/include/knowhere/comp/knowhere_config.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef COMP_KNOWHERE_CONFIG_H
#define COMP_KNOWHERE_CONFIG_H
diff --git a/include/knowhere/comp/thread_pool.h b/include/knowhere/comp/thread_pool.h
index fca10ea79..140f01ad1 100644
--- a/include/knowhere/comp/thread_pool.h
+++ b/include/knowhere/comp/thread_pool.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/include/knowhere/config.h b/include/knowhere/config.h
index 4f62f1e6b..4625a7ebc 100644
--- a/include/knowhere/config.h
+++ b/include/knowhere/config.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef CONFIG_H
#define CONFIG_H
diff --git a/include/knowhere/dataset.h b/include/knowhere/dataset.h
index 77541439d..d78f4349e 100644
--- a/include/knowhere/dataset.h
+++ b/include/knowhere/dataset.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef DATASET_H
#define DATASET_H
diff --git a/include/knowhere/expected.h b/include/knowhere/expected.h
index 8b9376cb7..e0aa12791 100644
--- a/include/knowhere/expected.h
+++ b/include/knowhere/expected.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef EXPECTED_H
#define EXPECTED_H
diff --git a/include/knowhere/factory.h b/include/knowhere/factory.h
index 7d4297fbc..f53c7ffc4 100644
--- a/include/knowhere/factory.h
+++ b/include/knowhere/factory.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef INDEX_FACTORY_H
#define INDEX_FACTORY_H
diff --git a/include/knowhere/feder/DiskANN.h b/include/knowhere/feder/DiskANN.h
index c8ea2c1b3..f76d5c029 100644
--- a/include/knowhere/feder/DiskANN.h
+++ b/include/knowhere/feder/DiskANN.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/include/knowhere/feder/HNSW.h b/include/knowhere/feder/HNSW.h
index 2ec8f8bab..f0c86092d 100644
--- a/include/knowhere/feder/HNSW.h
+++ b/include/knowhere/feder/HNSW.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/include/knowhere/feder/IVFFlat.h b/include/knowhere/feder/IVFFlat.h
index 2ca5434c2..312eda4d3 100644
--- a/include/knowhere/feder/IVFFlat.h
+++ b/include/knowhere/feder/IVFFlat.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/include/knowhere/file_manager.h b/include/knowhere/file_manager.h
index 2e8695dd9..21d6ab7c7 100644
--- a/include/knowhere/file_manager.h
+++ b/include/knowhere/file_manager.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef FILEMANAGER_H
#define FILEMANAGER_H
#include
diff --git a/include/knowhere/index.h b/include/knowhere/index.h
index 48510473d..7ec4cfe1b 100644
--- a/include/knowhere/index.h
+++ b/include/knowhere/index.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef INDEX_H
#define INDEX_H
diff --git a/include/knowhere/index_node.h b/include/knowhere/index_node.h
index 28e1a7e36..739f18d44 100644
--- a/include/knowhere/index_node.h
+++ b/include/knowhere/index_node.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef INDEX_NODE_H
#define INDEX_NODE_H
diff --git a/include/knowhere/index_node_thread_pool_wrapper.h b/include/knowhere/index_node_thread_pool_wrapper.h
index e83d405b1..c9fc9c9c0 100644
--- a/include/knowhere/index_node_thread_pool_wrapper.h
+++ b/include/knowhere/index_node_thread_pool_wrapper.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef INDEX_NODE_THREAD_POOL_WRAPPER_H
#define INDEX_NODE_THREAD_POOL_WRAPPER_H
diff --git a/include/knowhere/log.h b/include/knowhere/log.h
index e78f22b93..59b9a1cb8 100644
--- a/include/knowhere/log.h
+++ b/include/knowhere/log.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef KNOWHERE_LOG_H
#define KNOWHERE_LOG_H
diff --git a/include/knowhere/object.h b/include/knowhere/object.h
index 35976fe04..cadb0065a 100644
--- a/include/knowhere/object.h
+++ b/include/knowhere/object.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef OBJECT_H
#define OBJECT_H
diff --git a/src/common/comp/Timer.cc b/src/common/comp/Timer.cc
index 175f1bc46..aacd9d242 100644
--- a/src/common/comp/Timer.cc
+++ b/src/common/comp/Timer.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/src/common/comp/brute_force.cc b/src/common/comp/brute_force.cc
index a693ceefd..2dda6f84d 100644
--- a/src/common/comp/brute_force.cc
+++ b/src/common/comp/brute_force.cc
@@ -1,18 +1,13 @@
-// Licensed to the LF AI & Data foundation under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
-// http://www.apache.org/licenses/LICENSE-2.0
+// http://www.apache.org/licenses/LICENSE-2.0
//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
#include "knowhere/comp/brute_force.h"
diff --git a/src/common/comp/knowhere_config.cc b/src/common/comp/knowhere_config.cc
index c9a9ac9c8..45fcf3f18 100644
--- a/src/common/comp/knowhere_config.cc
+++ b/src/common/comp/knowhere_config.cc
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#include "knowhere/comp/knowhere_config.h"
#include
diff --git a/src/common/factory.cc b/src/common/factory.cc
index fb07063ea..36cf8efba 100644
--- a/src/common/factory.cc
+++ b/src/common/factory.cc
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#include "knowhere/factory.h"
namespace knowhere {
diff --git a/src/common/log.cc b/src/common/log.cc
index 9525f9382..187400e63 100644
--- a/src/common/log.cc
+++ b/src/common/log.cc
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#include "knowhere/log.h"
namespace knowhere {
diff --git a/src/common/metric.h b/src/common/metric.h
index 8085863f5..96c0a027b 100644
--- a/src/common/metric.h
+++ b/src/common/metric.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef COMMON_METRIC_H
#define COMMON_METRIC_H
diff --git a/src/common/range_util.cc b/src/common/range_util.cc
index 417c225f2..a410f184c 100644
--- a/src/common/range_util.cc
+++ b/src/common/range_util.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/src/common/range_util.h b/src/common/range_util.h
index 7a7eda6bf..a66f6b781 100644
--- a/src/common/range_util.h
+++ b/src/common/range_util.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Zilliz. All rights reserved.
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
diff --git a/src/index/annoy/annoy.cc b/src/index/annoy/annoy.cc
index 36b56bbbc..9ad1ad47e 100644
--- a/src/index/annoy/annoy.cc
+++ b/src/index/annoy/annoy.cc
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#include "annoylib.h"
#include "index/annoy/annoy_config.h"
#include "kissrandom.h"
diff --git a/src/index/annoy/annoy_config.h b/src/index/annoy/annoy_config.h
index b11af2840..0a5210012 100644
--- a/src/index/annoy/annoy_config.h
+++ b/src/index/annoy/annoy_config.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef ANNOY_CONFIG_H
#define ANNOY_CONFIG_H
diff --git a/src/index/diskann/diskann.cc b/src/index/diskann/diskann.cc
index 3ce235112..8dbac0c37 100644
--- a/src/index/diskann/diskann.cc
+++ b/src/index/diskann/diskann.cc
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#include
#include "common/range_util.h"
diff --git a/src/index/diskann/diskann_config.h b/src/index/diskann/diskann_config.h
index b5c99aa9c..594cc307d 100644
--- a/src/index/diskann/diskann_config.h
+++ b/src/index/diskann/diskann_config.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef DISKANN_CONFIG_H
#define DISKANN_CONFIG_H
diff --git a/src/index/flat/flat.cc b/src/index/flat/flat.cc
index fc8a97f7d..9a184a4b6 100644
--- a/src/index/flat/flat.cc
+++ b/src/index/flat/flat.cc
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#include "common/metric.h"
#include "common/range_util.h"
#include "faiss/IndexBinaryFlat.h"
diff --git a/src/index/flat/flat_config.h b/src/index/flat/flat_config.h
index e557bbedd..36ed0ec1a 100644
--- a/src/index/flat/flat_config.h
+++ b/src/index/flat/flat_config.h
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#ifndef FLAT_CONFIG_H
#define FLAT_CONFIG_H
diff --git a/src/index/flat_gpu/flat_gpu.cc b/src/index/flat_gpu/flat_gpu.cc
index 26a01d692..136b09f05 100644
--- a/src/index/flat_gpu/flat_gpu.cc
+++ b/src/index/flat_gpu/flat_gpu.cc
@@ -1,3 +1,14 @@
+// Copyright (C) 2019-2023 Zilliz. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software distributed under the License
+// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+// or implied. See the License for the specific language governing permissions and limitations under the License.
+
#include
#include