All skills
upstash avatar

/upstash-search-js

@36daab8
by upstashupstash/skills27 stars
7

Work with the @upstash/search TypeScript/JavaScript SDK, a serverless full-text and semantic search database with built-in reranking. Use when adding search to an app or site, creating a search index, upserting documents with searchable content and filterable metadata, running keyword, semantic, or hybrid search queries, reranking results, filtering with SQL-like or structured filter syntax, paginating with range, fetching or deleting documents, resetting an index, or checking index info. Also use when the user asks for site search, product, document, or knowledge-base search, or a managed search service that needs no cluster to run.

Use this Skill: https://skilld.dev/gh/upstash/skills/upstash-search-js

This session only. Nothing lands on disk.

SKILL.md

≈165 tokens always: the name and description. ≈350 when used: this file. ≈1.9k more on demand in 2 files.

Upstash Search Documentation

Quick Start

Install the TS SDK:

npm install @upstash/search

Create a client and perform a simple upsert + search:

import { Search } from "@upstash/search";

const client = new Search({ url: process.env.UPSTASH_SEARCH_REST_URL, token: process.env.UPSTASH_SEARCH_REST_TOKEN });
const index = client.index("my-index");

await index.upsert({ id: "1", content: { text: "hello world" } });
const results = await index.search({ query: "hello" });

Basic steps:

  • Create an index
  • Insert or update documents
  • Run searches or filtered queries

Other Skill Files

sdk-overview

Provides detailed documentation for all TypeScript SDK commands. Includes:

  • delete: Deleting documents
  • fetch: Retrieving a document
  • info: Index info
  • range: Range queries
  • reset: Clearing an index
  • search: Search queries
  • upsert: Adding/updating documents
  • getting-started: Setup steps for the SDK

quick-start

Provides a fast, end-to-end workflow for creating a Search database, adding documents, and querying them. Covers essential concepts including:

  • Creating a database and storing credentials
  • Adding documents with content and metadata
  • Understanding content vs metadata (searchability and filterability)
  • Performing searches with optional reranking
  • Filtering syntax with SQL-like or structured filters
  • Common pitfalls and best practices

Source: SKILL.md on GitHub

No alerts16d3 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill provides instructions and examples for using the Upstash Search service via its official TypeScript and Python SDKs. It follows best practices by recommending that credentials be stored in environment variables. The only identified security risk is the potential for indirect prompt injection, as the agent retrieves and processes search results from an external database that could contain adversarial instructions.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

Signed by skilld at 36daab8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 days ago.

Activeupdated last month
metadata
{
  "author": "Upstash",
  "homepage": "https://upstash.com"
}

README badge

README badge for upstash/skills/upstash-search-js