upstash-vector-js
作者: upstash
關於 Upstash Vector 功能、TypeScript/JavaScript SDK 使用方式及整合的相關技能。當使用者詢問如何操作 Vector、其 TS SDK、功能或…時使用。
npx skills add https://github.com/upstash/skills --skill upstash-vector-jsVector Documentation 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, range, reset, resumable-query, upsert
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.
來自 upstash 的更多技能
context7-cli
upstash
使用 ctx7 CLI 來擷取函式庫文件、管理 AI 編碼技能,以及設定 Context7 MCP。當使用者提到「ctx7」或「context7」時啟動,…
official
context7-mcp
upstash
當使用者詢問關於函式庫、框架、API 參考資料,或需要程式碼範例時,應使用此技能。適用於設定問題、程式碼…
official
documentation-lookup
upstash
當使用者詢問關於函式庫、框架、API 參考資料或需要程式碼範例時,應使用此技能。適用於設定問題、程式碼…
official
find-docs
upstash
使用 Context7 CLI 擷取任何函式庫的最新文件與程式碼範例。
official
context7-cli
upstash
使用 ctx7 CLI 來擷取函式庫文件、管理 AI 編碼技能,以及設定 Context7 MCP。當使用者提到「ctx7」或「context7」時啟動,…
official
context7-docs-lookup
upstash
使用 Context7 獲取最新的函式庫文件。當使用者詢問關於函式庫、框架、API 參考或需要程式碼範例時觸發——…
official
context7-mcp
upstash
當使用者詢問關於函式庫、框架、API 參考資料,或需要程式碼範例時,應使用此技能。適用於設定問題、程式碼…
official
ctx7-cli
upstash
使用 ctx7 CLI 來擷取函式庫文件、管理 AI 編碼技能,以及設定 Context7 MCP。當使用者提到「ctx7」或「context7」時啟動…
official