Exciting release!Introducing "safe npm". Learn more →
Socket
Log inDemoInstall

chromadb

Package Overview
Dependencies
1
Maintainers
1
Versions
14
Issues
File Explorer

Advanced tools

chromadb

A JavaScript interface for chroma

    1.3.1latest
    npm

Version published
Maintainers
1
Weekly downloads
1,513
increased by45.2%

Weekly downloads

Readme

Source

chromadb

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.

Learn more about Chroma

Getting started

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.

Small example

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" });

Local development

View the Development Readme

License

Apache 2.0

FAQs

Last updated on 24 Feb 2023

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.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc