prompt-engineering-patterns
86优化生产环境 LLM 提示词
LLM 提示词经常失败,是因为指令、示例和评估标准不清晰。此技能提供模板和工作流,用于改进 Claude、Codex、Claude Code 以及类似工具中的提示词。
优化向量搜索索引
向量搜索系统很难调优,因为延迟、召回率、内存和构建时间之间存在冲突。此技能提供用于 HNSW 调优、量化、Qdrant 配置和监控的实用模板。
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "vector-index-tuning" from https://skillstore.io/skills/wshobson-vector-index-tuning.md and its manifest at https://skillstore.io/api/skills/wshobson-vector-index-tuning/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
正在使用“vector-index-tuning”。 为 200 万个向量推荐一个向量索引,目标召回率为 95%。
预期结果:
以带量化的 HNSW 作为起点。先使用适中的图连接度,对搜索广度进行基准测试,并在进一步降低内存前比较召回率。
正在使用“vector-index-tuning”。 我应该如何降低大型 embedding 集合的内存占用?
预期结果:
正在使用“vector-index-tuning”。 更改索引设置后应该监控什么?
预期结果:
每次配置更改后,跟踪 p50、p95 和 p99 延迟、相对于真值的召回率、查询吞吐量、构建时间和内存使用量。
The static findings are false positives caused by Markdown code fences, reference links, and Qdrant memmap configuration examples. No prompt injection, data exfiltration intent, or unauthorized execution behavior was found in SKILL.md.
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
https://skillstore.io/skills/wshobson-vector-index-tuning/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/wshobson-vector-index-tuning?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/wshobson-vector-index-tuning?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/wshobson-vector-index-tuning/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/wshobson-vector-index-tuning.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>wshobson. (2026). vector-index-tuning security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/wshobson-vector-index-tuning/audits/7@techreport{wshobson-wshobson-vector-index-tuning-2026,
author = {wshobson},
title = {vector-index-tuning security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/wshobson-vector-index-tuning/audits/7},
note = {Author version unspecified}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "vector-index-tuning security audit report (audit version 7)"
version: "unspecified"
type: report
authors:
- name: "wshobson"
date-released: "2026-07-08"
url: "https://skillstore.io/skills/wshobson-vector-index-tuning/audits/7"
identifiers:
- type: other
value: "skillstore:wshobson-vector-index-tuning:audit:7"
description: "Skillstore immutable audit report identifier"
每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
根据召回率目标和延迟预算比较 HNSW M、efConstruction 和 efSearch 设置。
估算存储需求,并为高容量 embedding 集合选择量化策略。
创建与召回率、速度、均衡或内存优先级相匹配的 Qdrant 集合设置。
使用 vector-index-tuning 为 800,000 个 768 维向量推荐索引类型。优先考虑召回率和延迟的均衡。
使用 vector-index-tuning 估算 2500 万个 1536 维向量在使用 HNSW 以及 fp32、int8 和乘积量化时的内存。
使用 vector-index-tuning 为目标召回率 0.97、p95 延迟低于 20 ms、500 万个向量的场景设计 HNSW 基准测试。
使用 vector-index-tuning 为内存受限的语义搜索服务提出 Qdrant HNSW、量化、优化器和搜索参数设置。
作者
wshobson许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
仓库
https://github.com/wshobson/agents/tree/main/plugins/llm-application-dev/skills/vector-index-tuning引用
64ca8af0f54a325752f08bd54e52151061ea659a
维护新鲜度
2026/7/23
使用量
14 次下载 · 203 次浏览
文件结构
📄 SKILL.md
优化生产环境 LLM 提示词
LLM 提示词经常失败,是因为指令、示例和评估标准不清晰。此技能提供模板和工作流,用于改进 Claude、Codex、Claude Code 以及类似工具中的提示词。
管理上下文驱动开发
当产品目标、技术栈选择和工作流规则分散各处时,AI 辅助项目会失去一致性。此技能通过 Conductor 上下文工件指导 Claude、Codex 和 Claude Code。
构建初创公司财务模型
初创团队在规划招聘、融资和现金使用之前,需要清晰的预测。此技能将收入、成本、资金可支撑时间和情景分析组织成实用的财务规划输出。
设计推动决策的 KPI 仪表板
团队经常构建展示大量数字却无法指导行动的仪表板。此技能可帮助 Claude、Codex 和 Claude Code 选择有意义的 KPI、组织视图,并清晰呈现指标。
编写无责事故复盘
事故评审常常变得不一致、侧重追责,或难以转化为行动。此技能帮助 Claude、Codex 和 Claude Code 起草结构化复盘,包含清晰的时间线、根本原因和负责人。
构建清晰的数据故事
原始指标往往难以说服利益相关者或支持决策。此技能帮助 Claude、Codex 和 Claude Code 将分析塑造成清晰的叙事、视觉呈现和建议。
优化 AgentDB 向量搜索
由 DNYoussef
大型向量数据库可能会变得缓慢、占用大量内存且难以进行基准测试。此 skill 为量化、HNSW 索引、缓存和验证提供结构化的 AgentDB 优化工作流。
构建 AgentDB 语义搜索
由 DNYoussef
团队需要为 RAG 和知识库提供相关的文档检索。此技能指导 AgentDB 设置、嵌入存储、索引、API 搜索和相关性调优。
优化 Supabase Postgres 性能
由 supabase
慢查询和架构漂移会让 Postgres 应用难以扩展。此技能为 AI 智能体提供基于 Supabase 的索引、RLS、连接池和诊断规则。
优化 Postgres 查询和架构
由 sickn33
慢查询和不安全的数据库模式在常规代码审查中很难发现。此技能为 Claude、Codex 和 Claude Code 提供有关索引、RLS、连接池、事务和诊断的结构化 Postgres 指导。
优化 PostgreSQL 性能
由 sickn33
缓慢的 PostgreSQL 系统在变更前需要结构化分析。此技能可指导查询调优、索引规划、配置审查、维护和监控。
在 Rust 中优化 Parquet 性能
由 EmilLindfors
使用默认设置时,Parquet 流水线可能会浪费存储和内存。此技能会审查 Rust Parquet 读取和写入,然后建议压缩、大小设置、投影和过滤方面的改进。