Automic VaultAutomic Vault

brew

使用 Homebrew, Nix 安装 ngt

查看 ngt 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ngt

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#ngt

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

概览

软件包摘要

Neighborhood graph and tree for indexing high-dimensional data

命令和别名

  • ngt
  • qbg

历史

项目历史与用法

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

安全态势

尚未找到受保护工具覆盖

没有找到 ngt 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ngtcli全局可执行文件
qbgcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本2.7.4
管理器更新时间2026-05-08
本地数据OK
上游当前
检测到的最新版本v2.7.4

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

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:ngt
版本2.7.4
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ngt
主页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
Pulseupdated
依赖libomp
构建依赖cmake
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

ngt

nix profile install nixpkgs#ngt
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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