Automic VaultAutomic Vault

brew

Install ngt with Homebrew, Nix

Neighborhood graph and tree for indexing high-dimensional data. Version 2.7.4 via Homebrew; verified 2026-05-08.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install ngt

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#ngt

nixpkgs package indexes · pkgs/by-name/ng/ngt/package.nix · source: api.github.com

overview

Package summary

Neighborhood graph and tree for indexing high-dimensional data

Commands and aliases

  • ngt
  • qbg

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Timeline

  • {'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

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for ngt. Nucleus package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
ngtcliglobal executable
qbgcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.7.4
manager updated2026-05-08
local dataok
upstreamcurrent
latest detectedv2.7.4

https://github.com/NGT-labs/NGT

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:ngt
Version2.7.4
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/ngt
Homepagehttps://github.com/NGT-labs/NGT
Repositoryhttps://github.com/NGT-labs/NGT
Upstream docshttps://github.com/NGT-labs/NGT#readme
LicenseApache-2.0
Source archivehttps://github.com/NGT-labs/NGT/archive/refs/tags/v2.7.4.tar.gz
Last updated2026-05-08T19:35:29Z
Pulseupdated
Dependencieslibomp
Build dependenciescmake
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namengt
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

ngt

nix profile install nixpkgs#ngt
  • normalized package name match
  • Matched by: Ngt
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ng/ngt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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