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.
Skills เพิ่มเติมจาก upstash
context7-cli
upstash
ใช้ CLI ctx7 เพื่อดึงเอกสารไลบรารี จัดการทักษะการเขียนโค้ด 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
ใช้ CLI ctx7 เพื่อดึงเอกสารไลบรารี จัดการทักษะการเขียนโค้ด AI และกำหนดค่า Context7 MCP เปิดใช้งานเมื่อผู้ใช้พูดถึง "ctx7" หรือ "context7"...
official
context7-docs-lookup
upstash
ใช้ Context7 เพื่อดึงเอกสารไลบรารีที่ทันสมัย ทำงานเมื่อผู้ใช้ถามเกี่ยวกับไลบรารี เฟรมเวิร์ก เอกสารอ้างอิง API หรือต้องการตัวอย่างโค้ด —…
official
context7-mcp
upstash
ทักษะนี้ควรใช้เมื่อผู้ใช้ถามเกี่ยวกับไลบรารี เฟรมเวิร์ก เอกสารอ้างอิง API หรือต้องการตัวอย่างโค้ด เปิดใช้งานสำหรับคำถามเกี่ยวกับการตั้งค่า โค้ด…
official
ctx7-cli
upstash
ใช้ CLI ctx7 เพื่อดึงเอกสารไลบรารี จัดการทักษะการเขียนโค้ด AI และกำหนดค่า Context7 MCP เปิดใช้งานเมื่อผู้ใช้พูดถึง "ctx7" หรือ "context7"...
official