Chromadb embeddings

From bidewio/better-openclaw · View interactive version

Chromadb embeddings is an AI agent skill from the GitHub repository bidewio/better-openclaw. Store and query vector embeddings using ChromaDB at {{CHROMADB_HOST}}:{{CHROMADB_PORT}}.

How to use this skill

Skill file

ChromaDB Embeddings

ChromaDB is available at http://{{CHROMADB_HOST}}:{{CHROMADB_PORT}} within the Docker network.

Create a Collection

curl -X POST "http://{{CHROMADB_HOST}}:{{CHROMADB_PORT}}/api/v1/collections" \
  -H "Content-Type: application/json" \
  -d '{"name": "my_collection", "metadata": {"hnsw:space": "cosine"}}'

Add Documents

curl -X POST "http://{{CHROMADB_HOST}}:{{CHROMADB_PORT}}/api/v1/collections/{collection_id}/add" \
  -H "Content-Type: application/json" \
  -d '{"ids": ["doc1"], "documents": ["Hello world"], "metadatas": [{"source": "test"}]}'

Query Similar Documents

curl -X POST "http://{{CHROMADB_HOST}}:{{CHROMADB_PORT}}/api/v1/collections/{collection_id}/query" \
  -H "Content-Type: application/json" \
  -d '{"query_texts": ["greeting"], "n_results": 5}'

Tips for AI Agents

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.