Skip to main content

Chroma.

Project description

Chroma Chroma

Chroma - the open-source data infrastructure for AI.

Discord | License | Docs | Homepage

pip install chromadb # python client
# for javascript, npm install chromadb!
# for client-server mode, chroma run --path /chroma_db_path

Chroma Cloud

Our hosted service, Chroma Cloud, powers serverless vector, hybrid, and full-text search. It's extremely fast, cost-effective, scalable and painless. Create a DB and try it out in under 30 seconds with $5 of free credits.

Get started with Chroma Cloud

API

The core API is only 4 functions (run our 💡 Google Colab):

import chromadb
# setup Chroma in-memory, for easy prototyping. Can add persistence easily!
client = chromadb.Client()

# Create collection. get_collection, get_or_create_collection, delete_collection also available!
collection = client.create_collection("all-my-documents")

# Add docs to the collection. Can also update and delete. Row-based API coming soon!
collection.add(
    documents=["This is document1", "This is document2"], # we handle tokenization, embedding, and indexing automatically. You can skip that and add your own embeddings as well
    metadatas=[{"source": "notion"}, {"source": "google-docs"}], # filter on these!
    ids=["doc1", "doc2"], # unique for each doc
)

# Query/search 2 most similar results. You can also .get by id
results = collection.query(
    query_texts=["This is a query document"],
    n_results=2,
    # where={"metadata_field": "is_equal_to_this"}, # optional filter
    # where_document={"$contains":"search_string"}  # optional filter
)

Learn about all features on our Docs

Get involved

Chroma is a rapidly developing project. We welcome PR contributors and ideas for how to improve the project.

Release Cadence We currently release new tagged versions of the pypi and npm packages on Mondays. Hotfixes go out at any time during the week.

License

Apache 2.0

Project details


Release history Release notifications | RSS feed

This version

1.5.7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chromadb-1.5.7.tar.gz (2.5 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

chromadb-1.5.7-cp39-abi3-win_amd64.whl (23.1 MB view details)

Uploaded CPython 3.9+Windows x86-64

chromadb-1.5.7-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.0 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

chromadb-1.5.7-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (22.4 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

chromadb-1.5.7-cp39-abi3-macosx_11_0_arm64.whl (21.3 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

chromadb-1.5.7-cp39-abi3-macosx_10_12_x86_64.whl (22.2 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file chromadb-1.5.7.tar.gz.

File metadata

  • Download URL: chromadb-1.5.7.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for chromadb-1.5.7.tar.gz
Algorithm Hash digest
SHA256 9c4b01d164c088c42945795177fe6ec3a1447f0f23fdaaefff771cdc119e3d8e
MD5 49f30e2709e971de6fedd4452c606f6a
BLAKE2b-256 ff161de79a685650f2cae8ae15d40ff6fbd243fa5d4a66ea8db8fcfcc2d3c700

See more details on using hashes here.

File details

Details for the file chromadb-1.5.7-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: chromadb-1.5.7-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 23.1 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for chromadb-1.5.7-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d281f346e638ade719c2952d88641c0582616058881073db0248e6301bf93a7d
MD5 b9e057fb677620de09bdcc6a416a87e5
BLAKE2b-256 e2811d50da242d4f69c4643467ec7704fcba8a790d48fd194b3be5d657b20c45

See more details on using hashes here.

File details

Details for the file chromadb-1.5.7-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for chromadb-1.5.7-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d5d30691ed3207e31f5029ce3c915d98bf154f01541361b820bcfe8c7fab862
MD5 37094bd9fa0dfb1b1ac75bec02b30ff6
BLAKE2b-256 e430c81b33b2d8d3d03c4ca7364348e03e6e80d15b36dd6bd1ca6c22e03a89f5

See more details on using hashes here.

File details

Details for the file chromadb-1.5.7-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chromadb-1.5.7-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 840b633089637f01485fa013ee4004288ac164da794258b693c5ead98405a3a7
MD5 276717c42c508ec67eae7de8102f9cdd
BLAKE2b-256 df827e69c63e045be54e3d590c1f479e8a3d4520fd7a822ad643677768296d35

See more details on using hashes here.

File details

Details for the file chromadb-1.5.7-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chromadb-1.5.7-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 adde835a4754eb6c452f9c9410c427678758d46992810bf626089aea2afe4d68
MD5 66349700b147731e6c930c371ef2e126
BLAKE2b-256 ea82576876f28d804af14e290043bcc5ba7beda7edfa408168844d054a4a9039

See more details on using hashes here.

File details

Details for the file chromadb-1.5.7-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chromadb-1.5.7-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b5cb5309a687ed8723648736d31ed92aa7f34555e9605e3ad701be3d16c2cb6e
MD5 7946d6972ee605faa69a83547a77e12d
BLAKE2b-256 de9584591b90c477c1698c979dc0c2f3c077df203dcaf8d5d651b67f16733575

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page