When using an embedding model in the index, text is embedded automatically:
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionupstash-vector-db-skillsExecute the skills CLI command in your project's root directory to begin installation:
Fetches upstash-vector-db-skills from gocallum/nextjs16-agent-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate upstash-vector-db-skills. Access via /upstash-vector-db-skills in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
19
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
19
stars
UPSTASH_VECTOR_REST_URL and UPSTASH_VECTOR_REST_TOKEN to .envpnpm add @upstash/vector
UPSTASH_VECTOR_REST_URL=your_url
UPSTASH_VECTOR_REST_TOKEN=your_token
import { Index } from "@upstash/vector";
const index = new Index({
url: process.env.UPSTASH_VECTOR_REST_URL,
token: process.env.UPSTASH_VECTOR_REST_TOKEN,
});
When using an embedding model in the index, text is embedded automatically:
// Single document
await index.upsert({
id: "doc-1",
data: "Upstash provides serverless vector database solutions.",
metadata: { source: "docs", category: "intro" },
});
// Batch
await index.upsert([
{ id: "doc-2", data: "Vector search powers semantic similarity.", metadata: { source: "docs" } },
{ id: "doc-3", data: "MixBread AI provides high-quality embeddings.", metadata: { source: "blog" } },
]);
// Semantic search with auto-embedding
const results = await index.query({
data: "What is semantic search?",
topK: 5,
includeMetadata: true,
});
results.forEach((result) => {
console.log(`ID: ${result.id}, Score: ${result.score}, Metadata:`, result.metadata);
});
Namespaces partition a single index into isolated subsets. Useful for multi-tenant or multi-domain apps.
// Upsert in namespace "blog"
await index.namespace("blog").upsert({
id: "post-1",
data: "Next.js tutorial for Vercel deployment",
metadata: { author: "user-123" },
});
// Query only "blog" namespace
const blogResults = await index.namespace("blog").query({
data: "Vercel deployment",
topK: 3,
includeMetadata: true,
});
// List all namespaces
const namespaces = await index.listNamespaces();
console.log(namespaces);
// Delete namespace
await index.deleteNamespace("blog");
// api/search.ts (Vercel Edge Function or Serverless Function)
import { Index } from "@upstash/vector";
export const config = {
runtime: "nodejs", // or "edge"
};
const index = new Index({
url: process.env.UPSTASH_VECTOR_REST_URL,
token: process.env.UPSTASH_VECTOR_REST_TOKEN,
});
export default async function handler(req, res) {
if (req.method !== "POST") {
return res.status(405).json({ error: "Method not allowed" });
}
const { query, namespace = "", topK = 5 } = req.body;
try {
const searchIndex = namespace ? index.namespace(namespace) : index;
const results = await searchIndex.query({
data: query,
topK,
includeMetadata: true,
});
return res.status(200).json({ results });
} catch (error) {
console.error("Search error:", error);
return res.status(500).json({ error: "Search failed" });
}
}
// Reset (clear all vectors in index or namespace)
await index.reset();
// Or reset a specific namespace
await index.namespace("old-data").reset();
// Delete a single vector
await index.delete("doc-1");
// Delete multiple vectors
await index.delete(["doc-1", "doc-2", "doc-3"]);
BAAI/bge-large-en-v1.5 (1024 dim, best performance, ~64.23 MTEB score)BAAI/bge-base-en-v1.5 (768 dim, good balance)BAAI/bge-small-en-v1.5 (384 dim, lightweight)BAAI/bge-m3 (1024 dim, sparse + dense hybriPrerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
JuliusBrussee/caveman
JuliusBrussee/caveman
whyashthakker/agent-skills-marketing
vercel-labs/skills
kimyx0207/findskill
JuliusBrussee/caveman
upstash-vector-db-skills is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Useful defaults in upstash-vector-db-skills — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
upstash-vector-db-skills has been reliable in day-to-day use. Documentation quality is above average for community skills.
Registry listing for upstash-vector-db-skills matched our evaluation — installs cleanly and behaves as described in the markdown.
Keeps context tight: upstash-vector-db-skills is the kind of skill you can hand to a new teammate without a long onboarding doc.
I recommend upstash-vector-db-skills for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Useful defaults in upstash-vector-db-skills — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
upstash-vector-db-skills is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
upstash-vector-db-skills fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Keeps context tight: upstash-vector-db-skills is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 57