Skip to content

Commit de0025a

Browse files
committed
update READMEs
1 parent 3d4d9d6 commit de0025a

File tree

5 files changed

+37
-3
lines changed

5 files changed

+37
-3
lines changed

README-jp.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Neighborhood Graph and Tree for Indexing High-dimensional Data
1010

1111
ニュース
1212
-------
13+
- 05/26/2025 直積量子化がグラフのデータタイプとして利用可能になりました。 (v2.4.0)
14+
- 10/29/2024 スカラ量子化がグラフやQBGのデータタイプとして利用可能になりました。(v2.3.0)
1315
- 2024/04/10 内積が利用可能になりました。(v2.1.0)
1416
- 2022/08/10 QBG(Quantized Blob Graph)およびQG(NGTQGの改良版)が利用可能となりました。ngtqおよびngtqgは[qbg](https://github.com/yahoojapan/NGT/blob/main/bin/qbg/README.md)で置き換えられました。
1517
- 2022/02/04 FP16(半精度浮動小数点)が利用可能になりました。(v1.14.0)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Neighborhood Graph and Tree for Indexing High-dimensional Data
1010

1111
News
1212
----
13+
- 05/26/2025 Product quantization is now available as a data type for graph indices. (v2.4.0)
14+
- 10/29/2024 Scalar quantization is now available as a data type for graph indices and QBG. (v2.3.0)
1315
- 04/10/2024 Inner product (or dot product) is now available. (v2.1.0)
1416
- 08/10/2022 [QBG](https://github.com/yahoojapan/NGT#qbg-quantized-blob-graph-based-method) (Quantized Blob Graph) and [QG](https://github.com/yahoojapan/NGT#qg-quantized-graph-based-method) (renewed NGTQG) are now available. The command-line interface ngtq and ngtqg are now obsolete by replacing [qbg](bin/qbg/README.md). (v2.0.0)
1517
- 02/04/2022 FP16 (half-precision floating point) is now available. (v1.14.0)

bin/ngt/README-jp.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ CygWin といった POSIXLY_CORRECT が設定されている環境では、コ
3232

3333
- *[create](#create)*
3434
- *[append](#append)*
35+
- *[prep-pq](#prep-pq)*
3536
- *[search](#search)*
3637
- *[remove](#remove)*
37-
- *[prune](#prune)*
38+
- *[prune](#prune-非推奨)*
3839
- *[reconstruct graph](#reconstruct-graph)*
3940
- *[rebuild](#rebuild)*
4041

@@ -93,6 +94,7 @@ ANNGやBKNNGを指定した場合には登録データ(ノード)からエ
9394
- __f__: 4バイト浮動小数点(デフォルト)
9495
- __h__: 2バイト浮動小数点
9596
- __q__: 1バイトスカラー量子化
97+
- __pq4__: 4ビット直積量子化
9698

9799
**-D** *distance\_function*
98100
距離関数を指定します。
@@ -134,6 +136,17 @@ ANNGやBKNNGを指定した場合には登録データ(ノード)からエ
134136
**-n** *no\_of\_registration\_data*
135137
登録するデータ数を指定します。指定しない場合には指定されたファイル中のすべてのデータを登録します。
136138

139+
### PREP-PQ
140+
141+
プロダクト量子化(product quantization)データ型の前処理を実行します。
142+
143+
$ ngt prep-pq index
144+
145+
146+
*index*
147+
データ型がプロダクト量子化に設定され、オブジェクトが精査オブジェクトリポジトリに追加されている既存のインデックス名を指定してください。
148+
このコマンドは、オブジェクトを量子化するためのQBGデータ構造を構築します。
149+
137150
### SEARCH
138151

139152
指定されたクエリデータを用いてインデックスを検索します。

bin/ngt/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Description
3434

3535
- *[create](#create)*
3636
- *[append](#append)*
37+
- *[prep-pq](#prep-pq)*
3738
- *[search](#search)*
3839
- *[remove](#remove)*
3940
- *[prune](#prune-not-recommended)*
@@ -95,6 +96,7 @@ Specify the data object type.
9596
- __f__: 4 byte floating point number (default)
9697
- __h__: 2 byte floating point number
9798
- __q__: 1 byte scalar quantization
99+
- __pq4__: 4 bit product quantization
98100

99101
**-D** *distance\_function*
100102
Specify the distance function as follows.
@@ -137,6 +139,17 @@ Specify the number of dimensions of registration data. Specification is unnecess
137139
**-n** *no\_of\_registration\_data*
138140
Specify the number of data items to be registered. If not specified, all data in the specified file will be registered.
139141

142+
### PREP-PQ
143+
144+
Execute preprocessing for the product quantization data type.
145+
146+
$ ngt prep-pq index
147+
148+
149+
*index*
150+
Specify the name of the existing index where the data type is set to product quantization and the objects are appended to the refinement object repository. This command builds a QBG data structure to quantize the objects.
151+
152+
140153
### SEARCH
141154

142155
Search the index using the specified query data.

bin/qbg/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Specify the number of trials to optimize the subvector quantization.
158158

159159
Search the index using the specified query data.
160160

161-
$ qbg search [-n number_of_search_objects] [-e search_range_coefficient] [-p result_expansion]
161+
$ qbg search [-n number_of_search_objects] [-e search_range_coefficient] [-p result_expansion] [-R refinement_data_type]
162162
index query_data
163163
164164

@@ -181,8 +181,12 @@ Specify the magnification coefficient (epsilon) of the search range for the quan
181181
Specify the number of the explored nodes in the graph. When the number of the explored nodes reached the specified number, the search is terminated.
182182

183183
**-p** *result_expansion* (default = 0.0)
184-
Specify the expansion ratio of the number of approximate inner search objects to the number of search objects. For example, when the ratio is 10 and the number of search objects is 20, the number of the approximate search objects is set to 200 inside the search processing. A larger value brings higher accuracy but slower searching.
184+
Specify the expansion ratio of the number of approximate inner search objects to the number of search objects. For example, when the ratio is 10 and the number of search objects is 20, the number of approximate search objects is set to 200 inside the search process. After retrieving the approximate search objects, exact distances are calculated, and the objects are ranked to obtain the top results according to the number of search objects. This process is called search refinement. A larger value brings higher accuracy but slower searching. If the -R option is not specified, the objects for refinement are taken from secondary storage, which may slow down the refinement process.
185185

186+
**-R** *refinement_data_type*
187+
Specify the data type for the search refinement. The objects for refinement are loaded into memory as the specified data type from secondary storage to shorten the refinement time. On the other hand, a large amount of memory may be used.
188+
- __f__: 4 byte floating point number (default)
189+
- __h__: 2 byte floating point number
186190

187191
Examples of using the quantized graph
188192
-------------------------------------

0 commit comments

Comments
 (0)