chromadb

ChromaDB: A tool for storing, searching, and managing vector embeddings, suitable for building RAG pipelines, semantic search engines, or recommendation systems. Trigger terms include chromadb, chroma, vector database, embeddings, semantic search, similarity search, vector storage, and rag.

Last repository push
GitHub Stars
219
Forks
38
Issues / PRs
7

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "chromadb" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c260431725392176186ba5545c221f833a239f3978d54e88a1542f5f59b2daea. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

ChromaDB: A tool for storing, searching, and managing vector embeddings, suitable for building RAG pipelines, semantic search engines, or recommendation systems. Trigger terms include chromadb, chroma, vector database, embeddings, semantic search, similarity search, vector storage, and rag.

0 Downloads

Introduction source: third_party · TerminalSkills · 1.0.0 Reference

SkillPi interpretation

Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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_collection for idempotent collection setup, choose PersistentClient for development and HttpClient for 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 use upsert() for incremental updates to avoid duplicates.
  • When querying, use collection.query(query_texts=..., n_results=...) for text-based search, combine metadata where filters to narrow results before semantic search, and set n_results based 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, $in with $and/$or logical operators, and combine with where_document for content-based filtering alongside semantic similarity.
  • When deploying, use the embedded PersistentClient for 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 choose cosine distance 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:

  1. Load documents and split into chunks with metadata (source, page)
  2. Create a collection with OpenAI embedding function
  3. Batch-add document chunks with upsert() for idempotent ingestion
  4. 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:

  1. Create a collection with product descriptions and category metadata
  2. Implement search combining query_texts with where={"category": "electronics"}
  3. Return results with distances for relevance ranking
  4. Add price range filtering with $gte and $lte operators

Output: A filtered semantic search that narrows by metadata before ranking by text similarity.

Guidelines

  • Use get_or_create_collection for 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_results based 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 cosine distance for normalized embeddings (OpenAI, Cohere) and l2 for unnormalized.

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 面向 RAG 和语义搜索等明确工程场景,解决向量数据库的实际使用痛点
  • 提供从开发到部署的完整工作流指导,实用性强
Trigger Precision95/100

Highlights

  • 触发词覆盖全面且精准,包含 chromadb、向量数据库、语义搜索等核心术语
  • 边界清晰,不易与其他 Skill 混淆
Structure and Standards90/100

Areas to improve

  • description 内容重复 Reported severity: Minor

    顶层 frontmatter 和 skill_body 内部均包含 description 字段,内容一致但存在冗余

    Recommendation: 建议保留一处 description,避免重复维护

Highlights

  • 结构清晰,分阶段说明初始化、添加、查询、部署等关键操作
  • 提供两个端到端示例,覆盖 RAG 和产品搜索典型场景
Execution Reliability88/100

Highlights

  • 参数说明准确,涵盖 n_results、metadata filters、HNSW 调优等关键配置
  • 强调 upsert 避免重复、批量处理控制内存等工程最佳实践
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.