chromadb
Advanced tools
A JavaScript interface for chroma
Weekly downloads
Readme
Chroma is the open-source embedding database. Chroma makes it easy to build LLM apps by making knowledge, facts, and skills pluggable for LLMs.
This package gives you a JS/TS interface to talk to a backend Chroma DB over REST.
Chroma needs to be running in order for this client to talk to it. Please see the 🧪 Usage Guide to learn how to quickly stand this up.
import { ChromaClient } from "chromadb"
const chroma = new ChromaClient("http://localhost:8000");
const collection = await chroma.createCollection("test-from-js");
for (let i = 0; i < 20; i++) {
await collection.add(
"test-id-" + i.toString(),
[1, 2, 3, 4, 5],
{ "test": "test" }
)
}
const queryData = await collection.query([1, 2, 3, 4, 5], 5, { "test": "test" });
Apache 2.0
FAQs
A JavaScript interface for chroma
The npm package chromadb receives a total of 1,259 weekly downloads. As such, chromadb popularity was classified as popular.
We found that chromadb demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.