Skip to main content

Chroma Client.

Project description

Chroma logo

Chroma - the open-source embedding database.
This package is for the Python HTTP client-only library for Chroma. This client connects to the Chroma Server. If that it not what you are looking for, you might want to check out the full library.

pip install chromadb-client # python http-client only library

To connect to your server and perform operations using the client only library, you can do the following:

import chromadb
# Example setup of the client to connect to your chroma server
client = chromadb.HttpClient(host="localhost", port=8000)

collection = client.create_collection("all-my-documents")

collection.add(
    documents=["This is document1", "This is document2"],
    metadatas=[{"source": "notion"}, {"source": "google-docs"}], # filter on these!
    ids=["doc1", "doc2"], # unique for each doc
    embeddings = [[1.2, 2.1, ...], [1.2, 2.1, ...]]
)

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
)

License

Apache 2.0

Project details


Release history Release notifications | RSS feed

This version

1.5.0

Download files

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

Source Distribution

chromadb_client-1.5.0.tar.gz (52.3 MB view details)

Uploaded Source

Built Distribution

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

chromadb_client-1.5.0-py3-none-any.whl (777.5 kB view details)

Uploaded Python 3

File details

Details for the file chromadb_client-1.5.0.tar.gz.

File metadata

  • Download URL: chromadb_client-1.5.0.tar.gz
  • Upload date:
  • Size: 52.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for chromadb_client-1.5.0.tar.gz
Algorithm Hash digest
SHA256 39781a28181f9569d1918035f3671fd071a0cb0d0bf0e3476037e5a57823961a
MD5 8778ca5e7d957950926dadd8433b7acc
BLAKE2b-256 9d8ce86993d4707b4d8b4599dd9605fbd070a4e177f111cd06ecc8abf6929255

See more details on using hashes here.

File details

Details for the file chromadb_client-1.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for chromadb_client-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cd685c93a69e4f6c53ab29b2ee16fa1b87bb84ea2021130b3598369ca042458
MD5 a81bda815d8d67922227c758af983b53
BLAKE2b-256 314be35141697aac398e4e8227a72d44d8f855e499afb39cf3c3375084d6f194

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