chromadb-embeddings

star 55

Store and query vector embeddings using ChromaDB at {{CHROMADB_HOST}}:{{CHROMADB_PORT}}.

bidewio By bidewio schedule Updated 2/21/2026

name: chromadb-embeddings description: "Store and query vector embeddings using ChromaDB at {{CHROMADB_HOST}}:{{CHROMADB_PORT}}." metadata: openclaw: emoji: "🎨"


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

  • ChromaDB can auto-generate embeddings if configured with an embedding function.
  • Use metadata filters to narrow search results.
  • Prefer cosine distance for normalized embeddings.
Install via CLI
npx skills add https://github.com/bidewio/better-openclaw --skill chromadb-embeddings
Repository Details
star Stars 55
call_split Forks 8
navigation Branch main
article Path SKILL.md
More from Creator