Vectorless
SDKs

TypeScript

The vectorless npm package.

Updated 2026

Install

npm install vectorless

Initialize

import { VectorlessClient } from "vectorless";

// A local engine needs no API key.
const client = new VectorlessClient({ baseUrl: "http://localhost:7654" });

// A server with API-key auth:
// new VectorlessClient({ baseUrl: "https://your-host", apiKey: "<your key>" });

transport: "connect" switches from HTTP/REST to ConnectRPC.

Ingest and query

const { document_id } = await client.ingestDocument("./10-K.pdf");
const doc = await client.waitForReady(document_id, {
  onProgress: (status) => console.log(status),
});

const response = await client.query(doc.id, "What were FY2018 capital expenditures?");
for (const unit of response.sections) {
  console.log(unit.id, unit.title);
}
console.log(response.strategy, response.elapsed_ms);

With Jev navigation, the leading units are evidence pages (ids page_<n>), verbatim, followed by any sections.

Streaming

for await (const event of client.queryStream(doc.id, "Explain the segment results")) {
  if (event.type === "completed") console.log(`${event.elapsed_ms} ms`);
}

Other calls

getDocument, listDocuments, deleteDocument, getDocumentTree, getLlmsTxt, getSection, getSections, health, version.

Answers with pincites (POST /v1/answer) have no method yet; see the API reference.

On this page