Skip to main content
Nia is a search and index API that continuously provides context from docs, research papers, datasets, codebases, and moreβ€”so agents never rely on stale data. Scalable, 5x cheaper, and reliable.

Overview

Integration details

Tool features

Setup

The integration lives in the langchain-nia package.

Credentials

Sign up at trynia.ai to get an API key.
It’s also helpful (but not needed) to set up LangSmith for best-in-class observability/ of your tool calls. To enable automated tracing, set your LangSmith API key:

Instantiation

Using the toolkit

The NiaToolkit provides all 20 Nia tools with a shared API wrapper. Use include_* flags to control which tool groups are available:

Using individual tools

You can also use tools directly:

Invocation

Search across indexed sources

Search the web

Read files from indexed sources

Within an agent

Available tools

Search tools

  • NiaSearch - Semantic search across indexed repos, docs, datasets, and more
  • NiaWebSearch - Web search with category filtering and date range
  • NiaDeepResearch - Multi-step comprehensive research
  • NiaUniversalSearch - Search all sources simultaneously
  • NiaAdvisor - Analyze code against indexed documentation

Source management tools

  • NiaIndex - Index new sources (repos, docs, papers, datasets)
  • NiaSourceList - List indexed sources with filtering
  • NiaSourceSubscribe - Subscribe to pre-indexed public sources
  • NiaSourceSync - Re-sync sources to pull latest changes
  • NiaRead - Read files/pages from indexed sources
  • NiaGrep - Regex search within indexed sources
  • NiaExplore - Browse file tree of indexed sources

GitHub tools

  • NiaGitHubSearch - Search code in GitHub repositories
  • NiaGitHubRead - Read files from GitHub repos
  • NiaGitHubGlob - Find files matching glob patterns
  • NiaGitHubTree - Browse repo file tree structure

Context and memory tools

  • NiaContextSave - Save context for cross-agent sharing
  • NiaContextSearch - Semantic search over saved contexts

Dependency tools

  • NiaDependencySubscribe - Auto-subscribe to docs for project dependencies
  • NiaDependencyAnalyze - Preview what would be indexed from a manifest

API reference

For detailed documentation of all Nia tools and configurations, see the langchain-nia GitHub repository.