Chuyển đến nội dung
Skillpedia
Cơ sở dữ liệu58k · #3188

cli-anything-chromadb

Skill này làm gì

Skill này cho phép agent quản lý cơ sở dữ liệu vector ChromaDB, lưu văn bản để có thể tìm kiếm theo ý nghĩa. Nó dành cho người xây dựng tìm kiếm hoặc bộ nhớ cho công cụ AI.

Khi nào nên dùng

  • ✓Khi bạn muốn tạo hoặc liệt kê bộ sưu tập trong cơ sở dữ liệu ChromaDB.
  • ✓Khi bạn muốn thêm tài liệu vào một bộ sưu tập để tìm kiếm sau.
  • ✓Khi bạn muốn tìm văn bản đã lưu theo ý nghĩa thay vì các từ chính xác.

Liên kết skill

https://github.com/HKUDS/CLI-Anything/blob/main/chromadb/agent-harness/cli_anything/chromadb/skills/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/HKUDS/CLI-Anything/blob/main/chromadb/agent-harness/cli_anything/chromadb/skills/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tìm trong bộ sưu tập hub_knowledge của tôi các ghi chú về cách chúng ta triển khai ứng dụng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill gửi lệnh tới server ChromaDB của bạn qua HTTP API. Nó có thể liệt kê bộ sưu tập, quản lý tài liệu và chạy truy vấn ngữ nghĩa trả về các kết quả gần nhất.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

cli-anything-chromadb

A stateless command-line interface for ChromaDB vector database, built on the HTTP API v2. Designed for AI agents and power users who need to manage collections, documents, and run semantic queries without a browser UI.

Installation

This CLI is installed as part of the cli-anything-chromadb package:

pip install cli-anything-chromadb

Prerequisites:

  • Python 3.10+
  • ChromaDB server running at localhost:8000 (or specify via --host)

Usage

Basic Commands

# Show help
cli-anything-chromadb --help

# Start interactive REPL mode
cli-anything-chromadb

# Check server health
cli-anything-chromadb --json server heartbeat

# List all collections
cli-anything-chromadb --json collection list

# Semantic search
cli-anything-chromadb --json query search --collection hub_knowledge --text "How to deploy"

REPL Mode

When invoked without a subcommand, the CLI enters an interactive REPL session:

cli-anything-chromadb
# Enter commands interactively with tab-completion and history

Command Groups

server

Server health and version commands.

Command Description
heartbeat Check ChromaDB server health
version Get ChromaDB server version

collection

Manage ChromaDB collections.

Command Description
list List all collections
create --name NAME Create a new collection
delete --name NAME Delete a collection
info NAME Get collection info

document

Manage documents in collections.

Command Description
add --collection C --id ID --document TEXT Add document(s)
get --collection C Get documents
delete --collection C --id ID Delete document(s)
count --collection C Count documents

query

Semantic search against collections.

Command Description
search --collection C --text T Semantic search

Output Formats

All commands support dual output modes:

  • Human-readable (default): Tables, colors, formatted text
  • Machine-readable (--json flag): Structured JSON for agent consumption
# Human output
cli-anything-chromadb server heartbeat

# JSON output for agents
cli-anything-chromadb --json server heartbeat

For AI Agents

When using this CLI programmatically:

  1. Always use --json flag for parseable output
  2. Check return codes - 0 for success, non-zero for errors
  3. Parse stderr for error messages on failure
  4. Use --host to connect to non-default ChromaDB instances

Version

1.0.0

Câu hỏi thường gặp

Tôi có cần server ChromaDB đang chạy không?

Có, server ChromaDB phải đang chạy, mặc định ở localhost cổng 8000.

Tìm kiếm ngữ nghĩa nghĩa là gì?

Nó tìm văn bản khớp với ý nghĩa của truy vấn, không chỉ những từ giống nhau.

Script có dùng được không?

Có, đầu ra JSON giúp script và agent AI dễ đọc.

Chi tiết

Mô tả gốc của tác giả

Command-line interface for ChromaDB - A stateless CLI for managing vector database collections, documents, and semantic search. Designed for AI agents and automation via the ChromaDB HTTP API v2.

repo: HKUDS/CLI-Anything

Độ phổ biến

Sao GitHub
58k
Vị trí xếp hạng
#3188
Giấy phép
Apache-2.0
Cập nhật
21/9/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự