Nia AI 技能——索引和搜索仓库、文档、论文、数据集
概览
Nia 的 AI 代理技能——索引和搜索代码仓库、文档、研究论文、HuggingFace 数据集、本地文件夹、Slack 工作区、Google 云端硬盘和包。 Nia 提供索引和搜索外部仓库、研究论文、文档、软件包、本地文件夹、Slack 工作区、Google 云端硬盘以及进行 AI 驱动研究的工具。其主要目标是减少大型语言模型中的幻觉,并为 AI 代理提供最新的上下文信息。 1. 获取你的 API 密钥:- 使用 ./scripts/auth.sh 注册 ...然后 ./scripts/auth.sh bootstrap-key ... - 或者使用 ./scripts/auth.sh login-key- 运行 npx nia-wizard@latest(引导设置)- 或在 trynia.ai 注册 设置NIA_API_KEY环境变量: NIA_API_KEY优先于配置文件。 所有脚本都写在 ./scripts/ 中,并使用子命令:./scripts/ .sh [args...] 详见 SKILL.md 详细使用、环境变量及 Nia 优先工作流程指南。
概述(AI 翻译)
Nia 的 AI 代理技能——索引和搜索代码仓库、文档、研究论文、HuggingFace 数据集、本地文件夹、Slack 工作区、Google 云端硬盘和包。
什么是妮娅?
Nia 提供索引和搜索外部仓库、研究论文、文档、软件包、本地文件夹、Slack 工作区、Google 云端硬盘以及进行 AI 驱动研究的工具。其主要目标是减少大型语言模型中的幻觉,并为 AI 代理提供最新的上下文信息。
布置
- 获取你的API密钥:
- 先用
./scripts/auth.sh signup ...然后./scripts/auth.sh bootstrap-key ... - 或者使用
./scripts/auth.sh login-key - 运行
npx nia-wizard@latest(引导设置) - 或者在 trynia.ai 报名
- 存储密钥:
设置 NIA_API_KEY 环境变量:
或者使用配置文件:
NIA_API_KEY优先于配置文件。
- 要求:
curl,jq
用途
剧本
所有脚本均在./scripts/中,使用子命令:./scripts/ .sh [args...]
| 文字 | 描述 |
|---|---|
auth.sh |
程序化注册和API密钥引导/登录 |
repos.sh |
GitHub仓库的索引、列表、阅读、grep、树 |
| “消息来源。 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Nia Skill
AI agent skill for Nia - index and search code repositories, documentation, research papers, HuggingFace datasets, local folders, Slack workspaces, Google Drive, and packages.
What is Nia?
Nia provides tools for indexing and searching external repositories, research papers, documentation, packages, local folders, Slack workspaces, Google Drive, and performing AI-powered research. Its primary goal is to reduce hallucinations in LLMs and provide up-to-date context for AI agents.
Setup
-
Get your API key:
- Use
./scripts/auth.sh signup ...then./scripts/auth.sh bootstrap-key ... - Or use
./scripts/auth.sh login-key - Run
npx nia-wizard@latest(guided setup) - Or sign up at trynia.ai
- Use
-
Store the key:
Set the
NIA_API_KEYenvironment variable:export NIA_API_KEY="your-api-key"Or use a config file:
mkdir -p ~/.config/nia echo "your-api-key" > ~/.config/nia/api_keyNIA_API_KEYtakes precedence over the config file. -
Requirements:
curl,jq
Usage
# Index a repository
./scripts/repos.sh index "owner/repo"
# List indexed repositories
./scripts/repos.sh list
# Search all indexed sources
./scripts/search.sh universal "how does auth work?"
# Index documentation
./scripts/sources.sh index "https://docs.stripe.com"
# Grep repository code
./scripts/repos.sh grep "vercel/ai" "streamText"
# Connect Slack workspace
./scripts/slack.sh register-token xoxb-your-token "My Workspace"
# Search Slack messages
SLACK_WORKSPACES= ./scripts/search.sh query "question"
# Connect Google Drive
./scripts/google-drive.sh install
# Browse Drive items before indexing
./scripts/google-drive.sh browse
Scripts
All scripts are in ./scripts/ and use subcommands: ./scripts/.sh [args...]
| Script | Description |
|---|---|
auth.sh |
Programmatic signup and API key bootstrap/login |
repos.sh |
Index, list, read, grep, tree for GitHub repositories |
sources.sh |
Unified source management for docs, datasets, local folders, Slack, and Google Drive |
search.sh |
Query specific sources, universal search, web search, deep research |
oracle.sh |
Autonomous Oracle research agent (Pro) |
tracer.sh |
Live GitHub code search without indexing (Pro) |
slack.sh |
Slack workspace integration (OAuth, BYOT, channels, grep, messages) |
google-drive.sh |
Google Drive OAuth, browsing, selection, indexing, and sync |
papers.sh |
Index and list arXiv research papers |
datasets.sh |
Index and list HuggingFace datasets |
packages.sh |
Grep and search package source code (npm, PyPI, crates.io, Go, RubyGems) |
folders.sh |
Local folder management via the unified /sources API |
categories.sh |
Organize sources into categories |
contexts.sh |
Cross-agent context sharing |
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add nozomio-labs/nia-skill