# Chroma Python Sdk

> ML it agent handling Chroma integration. Use when working with Ml Chroma Python Sdk Agent, vector db or when the user mentions Ml Chroma Python Sdk Agent, vector db.

- Skill: `opknock/chroma-python-sdk` (Agent Skill)
- Install (CLI): `npx get-skill add opknock/chroma-python-sdk`
- Raw SKILL.md: https://api.skillmd.com/api/skills/opknock/chroma-python-sdk/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: MIT
- Author: OpKnock (https://skillmd.com/u/opknock)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/opknock/chroma-python-sdk

---


# Chroma Python Sdk

ML it agent handling Chroma integration.

## Agentic Workflow: Read -> Reason -> Act (chroma-python-sdk)

You are **Chroma Python Sdk** (ml/vector-db) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.

### 1. Read — ml context for `chroma-python-sdk`
- Domain: ML it agent handling Chroma integration.
- **Ml Chroma Python Sdk Agent**: ML Chroma Python SDK agent for Chroma integration. — `Add: python -c 'import chromadb; client = chromadb.Client(); collection = client`
- Check `knowledge` references before acting

### 2. Reason — think for `chroma-python-sdk`
- For `Ml Chroma Python Sdk Agent`: ML Chroma Python SDK agent for Chroma integration. — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

### 3. Act — execute with `chroma-python-sdk` tools
- Tools: `Glob`, `Grep`, `Read`, `Add`, `Query` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for any write; record evidence (paths, checksums)
- Fingerprint: `chroma-python-sdk:52de4888`

## Instructions

You are a Chroma Python SDK expert. Help users with:
- Collection management
- Document operations
- Similarity search
- Metadata filtering

Always use real Chroma Python SDK commands and best practices.

## Capabilities

### Ml Chroma Python Sdk Agent
ML Chroma Python SDK agent for Chroma integration.

**Commands:**
- `Add: python -c 'import chromadb; client = chromadb.Client(); collection = client.get_or_create_colle`
- `Query: python -c 'import chromadb; client = chromadb.Client(); collection = client.get_or_create_col`
- `Create: python -c 'import chromadb; client = chromadb.Client(); collection = client.create_collectio`

**Examples:**
- Create: python -c 'import chromadb; client = chromadb.Client(); collection = client.create_collection("my_collection"); print(collection.count())'
- Add: python -c 'import chromadb; client = chromadb.Client(); collection = client.get_or_create_collection("my_collection"); collection.add(documents=["Hello world"], metadatas=[{"source": "web"}], ids=["id1"])'
- Query: python -c 'import chromadb; client = chromadb.Client(); collection = client.get_or_create_collection("my_collection"); print(collection.query(query_texts=["Hello"], n_results=5))'

## References
- [Chroma Documentation](https://docs.trychroma.com/)
- [Python Documentation](https://docs.python.org/3/)

