# ngt を Homebrew, Nix でインストール

ngt のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:ngt
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install ngt
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ngt
```

  証拠: nixpkgs package indexes: pkgs/by-name/ng/ngt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:ngt
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/ngt>
- **バージョン:** 2.7.4
- **ソース概要:** Neighborhood graph and tree for indexing high-dimensional data
- **ホームページ:** <https://github.com/NGT-labs/NGT>
- **リポジトリ:** <https://github.com/NGT-labs/NGT>
- **上流ドキュメント:** <https://github.com/NGT-labs/NGT#readme>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://github.com/NGT-labs/NGT/archive/refs/tags/v2.7.4.tar.gz>
- **最終更新:** 2026-05-08T19:35:29Z
- **生成日時:** 2026-07-08T18:08:21+00:00

## 実行可能ファイル

- ngt (cli)
- qbg (cli)
- ngt (エイリアス)
- qbg (エイリアス)

## 依存関係

- libomp

## ビルド依存関係

- cmake

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 2.7.4
- マネージャ更新日: 2026-05-08
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/NGT-labs/NGT
- 検出された最新: v2.7.4 (最新)
## プロジェクトの歴史と使われ方

NGT, Neighborhood Graph and Tree, is Yahoo Japan/LY Corporation's approximate nearest neighbor search library for large, high-dimensional vector data. It provides command-line tools and C, C++, and Python interfaces for building vector indices and searching them quickly.

### プロジェクトの歴史

Masajiro Iwasaki wrote in April 2023 that Yahoo! JAPAN Research released NGT as open-source software in September 2016. The GitHub README credits Yahoo Japan Corporation from 2015 and anchors the project in graph/tree approximate nearest-neighbor methods, later adding ONNG, NGTQ, QG, and QBG variants.

The release notes embedded in the README show a progression from ONNG availability in August 2018, quantized NGT in December 2018, PyPI packaging in January and June 2019, QG in January 2021, FP16 in February 2022, and QBG/QG command consolidation in August 2022. Homebrew packaged stable version 2.7.4 on July 1, 2026.

### 採用の歴史

NGT's adoption is specialized but real in the vector-search world. The 2019 Opensource.com article says Yahoo! Japan used it for similarity-based fashion-item search, and the 2023 maintainer article says it was adopted by a number of Yahoo! JAPAN services through Vald. It is also cited in ANN benchmark and similarity-search literature.

Homebrew analytics on July 1, 2026 reported 268 install-on-request events over 365 days, which fits the package's role: useful for ML/search engineers and benchmarking people, not a mainstream developer utility.

### 使われ方

The package-nerd path is to install `ngt`, generate or export vectors, create an index with a command such as `ngt create -d 300 -D c index objects.ssv`, and search with `ngt search -n 10 index query.ssv`. Python users can install the binding from PyPI under the `ngt` package and use `ngtpy`.

QG and QBG matter when datasets get large enough that memory traffic dominates. The README describes NGT as graph/tree based, QG as quantized graph based, and QBG as quantized blob graph based; QBG is specifically documented for billion-object scale.

### タイムライン

- {'date': '2016-09', 'event': "Yahoo! JAPAN Research released NGT as open-source software, according to Masajiro Iwasaki's 2023 article."}
- {'date': '2018-08-08', 'event': 'ONNG became available in NGT v1.4.0.'}
- {'date': '2019-01-17', 'event': 'Python NGT became installable through PyPI in v1.5.1.'}
- {'date': '2021-01-15', 'event': 'NGT v1.13.0 added Quantized Graph support.'}
- {'date': '2022-08-10', 'event': 'QBG and renewed QG became available in v2.0.0.'}

### Related projects

- Vald
- ANN-Benchmarks
- Faiss
- hnswlib
- Annoy
- ScaNN

### ソース

- <https://formulae.brew.sh/api/formula/ngt.json>
- <https://github.com/NGT-labs/NGT>
- <https://medium.com/@masajiro.iwasaki/fusion-of-graph-based-indexing-and-product-quantization-for-ann-search-7d1f0336d0d0>
- <https://opensource.com/article/19/10/ngt-open-source-library>
- <https://research.lycorp.co.jp/en/softwaredata>


## セキュリティノート

ngt に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ngt
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- Nix - ngt: normalized package name match | nixpkgs package indexes: pkgs/by-name/ng/ngt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://www.automicvault.com/ja/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/ja/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/ja/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cmake](https://www.automicvault.com/ja/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [xapian](https://www.automicvault.com/ja/pkg/brew/xapian/) - Shares av.db curated category or tags: cli, data, indexing, library, search.
- [groonga](https://www.automicvault.com/ja/pkg/brew/groonga/) - Shares av.db curated category or tags: cli, data, indexing, search.
- [hyperestraier](https://www.automicvault.com/ja/pkg/brew/hyperestraier/) - Shares av.db curated category or tags: cli, data, indexing, search.
- [manticoresearch](https://www.automicvault.com/ja/pkg/brew/manticoresearch/) - Shares av.db curated category or tags: cli, data, indexing, search.
- [omega](https://www.automicvault.com/ja/pkg/brew/omega/) - Shares av.db curated category or tags: cli, data, indexing, search.
- [solr](https://www.automicvault.com/ja/pkg/brew/solr/) - Shares av.db curated category or tags: cli, data, indexing, search.
- [sonic](https://www.automicvault.com/ja/pkg/brew/sonic/) - Shares av.db curated category or tags: cli, data, indexing, search.
- [carrot2](https://www.automicvault.com/ja/pkg/brew/carrot2/) - Shares av.db curated category or tags: cli, data, search.
- [agentdb](https://www.automicvault.com/ja/pkg/npm/agentdb/) - Local package facts share a topical domain. Shared terms: cli, data, graph, search, vector.
- [kuzu](https://www.automicvault.com/ja/pkg/brew/kuzu/) - Local package facts share a topical domain. Shared terms: cli, data, graph, search, vector.

## Combined YAML source

View the package source record on GitHub. [combined/ngt.yml](https://github.com/automic-vault/db/blob/main/combined/ngt.yml)


## ソース

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
