Skip to main content

Chroma Client.

Project description

Chroma logo

Chroma - the open-source data infrastructure for AI.
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

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.8.tar.gz (22.0 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.8-py3-none-any.whl (794.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chromadb_client-1.5.8.tar.gz
Algorithm Hash digest
SHA256 4b733d7352fa148309b4542e3808e816db3a8e67c67791f255455198a1d35ae5
MD5 bb96635e91cf6e39884bc56be1411fbc
BLAKE2b-256 d46b652f9334fbf89d90a7019986a6fdbf59f818fc6cba7db59cbb570899b52b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chromadb_client-1.5.8-py3-none-any.whl
  • Upload date:
  • Size: 794.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chromadb_client-1.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 98d4e62938852e4c64b1ed300a259436893225e14afebbcef79bf808cbae4e7d
MD5 15c2334c3404d81c5745683974fb0935
BLAKE2b-256 802b04b4c9e831820c94c93d569df3ee05e67f553b7844ac30d3bd5851bf54b9

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