Pre-release
This release is a pre-release and may not be stable for production use.
Chroma - the open-source embedding database.
This package is for the 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
from chromadb.config import Settings
# Example setup of the client to connect to your chroma server
client = chromadb.Client(Settings(chroma_api_impl="rest",
chroma_server_host="localhost",
chroma_server_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
Release files for chromadb-client 0.3.26.dev10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chromadb-client-0.3.26.dev10.tar.gz | 328.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chromadb_client-0.3.26.dev10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 413.7 kB
Release files / chromadb-client-0.3.26.dev10.tar.gz
| Download URL | chromadb-client-0.3.26.dev10.tar.gz |
|---|---|
| Size | 328.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a941d6301963c8500c417abdfbc4ea135321763910d033ed9eb91fc19077aaa
|
|
BLAKE2b-256 checksum How to use checksums |
5f19b2bc227dc82e6e0d766d01d0aca1e42cfcb181577a835043440b6c1adc23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / chromadb_client-0.3.26.dev10-py3-none-any.whl
| Download URL | chromadb_client-0.3.26.dev10-py3-none-any.whl |
|---|---|
| Size | 85.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
118432e5bf07efbf62f751e307a377befcf4df8c1589e94934bdb139fa929b67
|
|
BLAKE2b-256 checksum How to use checksums |
c578c9516f53a3a6418c881a84181f54293f3438b3602535c96dc1f63833ba03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|