Skip to content
Upstash Vector (JS SDK)

Upstash Vector (JS SDK) Skill

Upstash's official skill for the @upstash/vector TypeScript SDK: upsert and query embeddings, hybrid and sparse indexes, metadata filtering and namespaces for RAG and semantic search.

GitHub Docs

Install

Install with the skills CLI

One command for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf and dozens of other agents. Needs Node.js; the skill is fetched straight from upstash/skills.

$ npx skills add upstash/skills --skill upstash-vector-js

Run it in a terminal. The CLI finds the agents installed on your machine, asks which ones to add the skill to, and whether to install it into the folder you ran it from or for all your projects.

Other ways to install

Copy the whole skill folder — SKILL.md and any scripts or references beside it — into ~/.claude/skills/upstash-vector-js/, where Claude Code picks it up in every project. Only git is needed.

tmp=$(mktemp -d) && \
  git clone --depth 1 --branch main https://github.com/upstash/skills.git "$tmp" && \
  mkdir -p ~/.claude/skills && \
  cp -R "$tmp"/skills/upstash-vector-js ~/.claude/skills/upstash-vector-js

No scripts or references next to it? Saving the SKILL.md alone as ~/.claude/skills/upstash-vector-js/SKILL.md works too.

Using another agent? Its personal skills folder
Codex
~/.agents/skills/
Cursor
~/.cursor/skills/
GitHub Copilot
~/.copilot/skills/
Gemini CLI
~/.gemini/skills/
Windsurf
~/.codeium/windsurf/skills/
OpenCode
~/.config/opencode/skills/

About

  • Covers every @upstash/vector SDK method including resumable queries
  • Reads the SDK's bundled docs and source in node_modules first
  • Raw-text upserts with a built-in embedding model
  • Dense, sparse and hybrid index structures
  • Server-side metadata filtering and namespaces
  • Use cases: RAG, semantic search, semantic cache and recommendations

Upstash Vector (JS SDK) is Upstash's official agent skill for @upstash/vector, the TypeScript and JavaScript client for Upstash Vector, a serverless vector database. It activates when an agent is writing or debugging code that stores embeddings, runs similarity or semantic search, builds retrieval-augmented generation, adds a semantic cache or recommendations, or needs a hosted vector index without running infrastructure.

Before writing code, the skill tells the agent to look for the documentation and readable TypeScript source bundled in node_modules/@upstash/vector/, so answers match the installed version, and to fall back to its own references otherwise. A quick start shows connecting with the REST URL and token from environment variables, upserting vectors with metadata and querying the top matches.

Linked reference files cover every SDK method (upsert, query, queryMany, fetch, range, update, delete, reset, info and resumable queries) and client options, upserting raw text against an index with a built-in embedding model, choosing dense, sparse or hybrid index structures, server-side metadata filtering and organising data with namespaces. MIT licensed.

SKILL.md

The instructions your agent loads, as published by Upstash.

SKILL.md
name
upstash-vector-js
description
Work with the @upstash/vector TypeScript/JavaScript SDK, a serverless vector database for embeddings, similarity search, semantic search, and RAG (retrieval-augmented generation). Use when upserting, querying, fetching, ranging, or deleting vectors, upserting raw text against an index with a built-in embedding model, choosing dense, sparse, or hybrid indexes, filtering by metadata, organizing data with namespaces, running resumable queries, or connecting Upstash Vector to an AI or LLM application. Also use when the user asks for a vector store, vector search, nearest-neighbor or kNN search, embeddings storage, semantic cache, recommendations or similarity features, or a hosted vector index that needs no infrastructure.
license
MIT
metadata
author: Upstash homepage: https://upstash.com

Vector Documentation Skill

Bundled docs and source

Before writing or debugging SDK code, check node_modules/@upstash/vector/docs/ for bundled docs and node_modules/@upstash/vector/src/ for readable TypeScript source. Read and search the relevant files when present; otherwise use the references in this skill.

Quick Start

Vector is a high‑performance vector database for storing, querying, and managing vector embeddings.

Basic workflow:

  • Install the Vector TS SDK.
  • Connect to a Vector instance.
  • Upsert vectors, query them, and manage namespaces.

Example (TypeScript):

import { Index } from "@upstash/vector";
const index = new Index({
  url: process.env.UPSTASH_VECTOR_REST_URL!,
  token: process.env.UPSTASH_VECTOR_REST_TOKEN!,
});

await index.upsert([{ id: "1", vector: [0.1, 0.2], metadata: { tag: "example" } }]);

const results = await index.query({
  vector: [0.1, 0.2],
  topK: 5,
});

For full usage, refer to the linked skill files below.

Other Skill Files
TS SDK Reference
  • sdk-methods: Explains SDK commands: delete, fetch, info, query, queryMany, range, reset, resumable-query, update, upsert, plus client options
Features
  • features/namespaces: Explains namespaces and dataset organization.
  • features/index-structure: Covers hybrid and sparse index structures.
  • features/filtering-and-metadata: Details metadata storage and server-side filtering.

Use these files for deeper guidance on SDK usage, advanced configurations, algorithms, and integrations.

Install

Skill: OpenSearch Launchpad

by OpenSearch Project

Featured

Take an OpenSearch search application from requirements to a running cluster — BM25, dense and sparse vectors, hybrid retrieval, agentic search and RAG, with relevance evaluation built in.

Browse all skills →