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.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
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 (
--jsonflag): 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:
- Always use
--jsonflag for parseable output - Check return codes - 0 for success, non-zero for errors
- Parse stderr for error messages on failure
- Use
--hostto 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
Bình luận
- …
Thêm skill từ kho mã này
cli-anything-3mf
58kCho phép agent của bạn kiểm tra và sửa file in 3D, gồm tìm lỗ tròn, đổi kích thước chúng, sửa lưới và so sánh hai file.
cli-anything-qgis
58kCho phép agent của bạn mở, sửa và xuất dự án bản đồ QGIS từ terminal, gồm các lớp, đối tượng, bố cục in và công cụ xử lý.
cli-anything-adguardhome
58kCho phép agent của bạn quản lý AdGuard Home, một bộ chặn quảng cáo toàn mạng, gồm bộ lọc, DNS rewrite, thiết bị và nhật ký truy vấn.
cli-anything-anygen
58kCho phép agent của bạn tạo slide, tài liệu, website và sơ đồ từ một prompt bằng dịch vụ AnyGen.
Skill tương tự
discrawl
394kCho phép agent của bạn tìm kiếm và tóm tắt kho lưu trữ tin nhắn Discord trên máy, kiểm tra độ mới của dữ liệu và đọc tin nhắn trực tiếp.
clickhouse-io
280kGiúp agent của bạn tối ưu truy vấn và schema trong ClickHouse theo thực hành tốt nhất cho phân tích dữ liệu hiệu năng cao khi truy vấn chậm.
scientific-db-pubmed-database
280kGiúp agent của bạn tìm bài báo khoa học trong lĩnh vực y sinh. Hữu ích cho nghiên cứu cần thông tin y khoa cụ thể.