用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majiayu000/claude-skill-registry --skill vector-store命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | vector-store |
| description | Vector store schema protection and migration management |
PROTECTED: Vector store schema management. Changes require pre-modification checklist validation.
import pinecone
from langchain_pinecone import PineconeVectorStore
pinecone.init(api_key="your-key")
index = pinecone.Index("rag-demo")
vector_store = PineconeVectorStore(index, embeddings)
Schema: {dimension: 1536, metric: "cosine"}
from langchain_community.vectorstores import Milvus
vector_store = Milvus(
embeddings,
connection_args={"host": "localhost", "port": "19530"},
collection_name="rag_demo",
index_params={"metric_type": "IP", "index_type": "IVF_FLAT"}
)
from langchain_community.vectorstores import Chroma
vector_store = Chroma(
collection_name="rag_demo",
embedding_function=embeddings,
persist_directory="./chroma_db"
)
from langchain_community.vectorstores import FAISS
vector_store = FAISS.from_documents(documents, embeddings)
vector_store.save_local("./faiss_index")
HALT before:
CAUTION before: 3. Metadata schema change → Migration needed
See: templates/rag-checklist.md
# 1. Backup
python scripts/export_vectors.py --output backup.json
# 2. Create new index
python scripts/create_index.py --dimension 3072
# 3. Re-embed documents
python scripts/reindex.py --model text-embedding-3-large
# 4. Switch app
export VECTOR_STORE_INDEX="rag-demo-v2"
# 5. Monitor
python scripts/monitor_quality.py
# 6. Delete old index (after 30 days)
Full guide: docs/protected-schemas.md
Last Updated: 2025-12-04 Version: 1.0 Adapted from: WHRESUME blog-protection-SKILL.md