polyvia npm package wraps the entire REST API in a fully-typed, ESM/CJS-compatible client.
Quick Start
Usage
Ingest
The SDK uploads file bytes directly to Polyvia’s storage backend (the API server is not in the upload path), so there is no practical file-size cap from the SDK side and large batches don’t fail on a request-body limit. Each file in a batch is uploaded and finalized independently — a failure on one file is captured inBatchIngestItem.error and does not affect
the others.
Query
Groups
Groups have a human name and an opaque backend id. Pass the name toingest / query and the SDK resolves it — you rarely touch the id. Use
getOrCreate when you want the group object itself.
Documents
Usage & Rate Limits
Error Handling
MCP & Agent Tools
MCP Server
Connect Polyvia to Claude, OpenAI, and other AI clients via MCP — including SDK helpers, programmatic agent tools, and Claude Desktop config.
Links
npm
npm install polyvia
GitHub
Source code and examples
