chromadb
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "chromadb":https://skillpi.com/zh/skills/deepskill-c260431725392176186ba5545c221f833a239f3978d54e88a1542f5f59b2daea。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
ChromaDB:用于存储、搜索与管理向量嵌入的工具,适合构建 RAG 流水线、语义搜索引擎或推荐系统。触发词包括 chromadb、chroma、向量数据库、嵌入、语义搜索、相似性搜索、向量存储 和 rag。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
Frontmatter
name: chromadb
description: >-
Assists with storing, searching, and managing vector embeddings using ChromaDB. Use when
building RAG pipelines, semantic search engines, or recommendation systems. Trigger words:
chromadb, chroma, vector database, embeddings, semantic search, similarity search,
vector store, rag.
license: Apache-2.0
compatibility: "Python 3.8+ or Node.js 18+ via npm package"
metadata:
author: terminal-skills
version: "1.0.0"
category: data-ai
tags: ["chromadb", "vector-database", "embeddings", "rag", "semantic-search"]ChromaDB
Overview
ChromaDB is an open-source vector database for storing, searching, and managing embeddings. It provides a simple API for document ingestion, semantic similarity search, and metadata filtering, supporting both Python and JavaScript/TypeScript clients with embedded, server, and cloud deployment options.
Instructions
- When initializing, use
get_or_create_collectionfor idempotent collection setup, choosePersistentClientfor development andHttpClientfor production server connections. - When adding documents, batch
add()calls in chunks of 5,000 documents, always store source metadata (filename, URL, page number) for RAG citations, and useupsert()for incremental updates to avoid duplicates. - When querying, use
collection.query(query_texts=..., n_results=...)for text-based search, combine metadatawherefilters to narrow results before semantic search, and setn_resultsbased on the LLM's context window (5-10 for most RAG pipelines). - When choosing embeddings, use the default Sentence Transformers for local development without API keys, OpenAI or Cohere embedding functions for production, or pass pre-computed vectors directly.
- When filtering metadata, use operators like
$eq,$gt,$inwith$and/$orlogical operators, and combine withwhere_documentfor content-based filtering alongside semantic similarity. - When deploying, use the embedded
PersistentClientfor single-node applications, Docker for server mode, or Chroma Cloud for managed hosting with multi-tenancy support. - When tuning performance, configure HNSW parameters (
hnsw:M,hnsw:construction_ef,hnsw:search_ef) for the quality-speed tradeoff and choosecosinedistance for normalized embeddings (OpenAI, Cohere).
Examples
Example 1: Build a document Q&A pipeline
User request: "Set up a RAG pipeline with ChromaDB for answering questions about our docs"
Actions:
- Load documents and split into chunks with metadata (source, page)
- Create a collection with OpenAI embedding function
- Batch-add document chunks with
upsert()for idempotent ingestion - Query with
collection.query()and pass retrieved chunks as context to the LLM
Output: A semantic search pipeline that retrieves relevant document chunks for LLM-powered Q&A.
Example 2: Add filtered semantic search to an application
User request: "Implement product search that combines text similarity with category filters"
Actions:
- Create a collection with product descriptions and category metadata
- Implement search combining
query_textswithwhere={"category": "electronics"} - Return results with distances for relevance ranking
- Add price range filtering with
$gteand$lteoperators
Output: A filtered semantic search that narrows by metadata before ranking by text similarity.
Guidelines
- Use
get_or_create_collectionfor idempotent collection initialization; it is safe for restarts. - Batch
add()calls in chunks of 5,000 documents to manage memory usage. - Always store source metadata (filename, URL, page number); it is essential for RAG citations.
- Use
upsert()for incremental updates to avoid duplicate documents when re-ingesting. - Set
n_resultsbased on the LLM's context window: 5-10 results for most RAG pipelines. - Use metadata filtering to narrow results before semantic search to reduce noise.
- Choose
cosinedistance for normalized embeddings (OpenAI, Cohere) andl2for unnormalized.
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 面向 RAG 和语义搜索等明确工程场景,解决向量数据库的实际使用痛点
- 提供从开发到部署的完整工作流指导,实用性强
亮点
- 触发词覆盖全面且精准,包含 chromadb、向量数据库、语义搜索等核心术语
- 边界清晰,不易与其他 Skill 混淆
待提升项
-
description 内容重复 原报告严重程度:轻微
顶层 frontmatter 和 skill_body 内部均包含 description 字段,内容一致但存在冗余
改进建议:建议保留一处 description,避免重复维护
亮点
- 结构清晰,分阶段说明初始化、添加、查询、部署等关键操作
- 提供两个端到端示例,覆盖 RAG 和产品搜索典型场景
亮点
- 参数说明准确,涵盖 n_results、metadata filters、HNSW 调优等关键配置
- 强调 upsert 避免重复、批量处理控制内存等工程最佳实践
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。