First of all, the command input parameters are completely different from the README! I have a chromadb deployed as an STS on local k8s with token auth. How does the cdp CLI connect to it? Doesn't it require any kind of credentials? And how to specify the tenant?
$ cdp exp chroma --uri http://<nodeport ip>:<port> --help
Usage: cdp exp chroma [OPTIONS]
Imports data into ChromaDB.
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ * --uri TEXT The Chroma endpoint. [default: None] [required] │
│ --collection TEXT The Chroma collection. [default: None] │
│ --out TEXT Export .jsonl file. [default: None] │
│ --append --no-append Append to export file. [default: no-append] │
│ --limit INTEGER The limit. [default: -1] │
│ --offset INTEGER The offset. [default: 0] │
│ --batch-size INTEGER The batch size. [default: 100] │
│ --embed-feature TEXT The embedding feature. [default: embedding] │
│ --meta-features TEXT The metadata features. [default: None] │
│ --id-feature TEXT The id feature. [default: id] │
│ --doc-feature TEXT The document feature. [default: text_chunk] │
│ --help Show this message and exit.
$ cdp exp chroma --uri http://<nodeport ip>:<port> --collection mycollection --out mycollection.jsonl
Error:
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home/khteh/.local/lib/python3.12/site-packages/chromadb/api/fastapi.py:650 in │
│ raise_chroma_error │
│ │
│ 647 │ │ raise chroma_error │
│ 648 │ │
│ 649 │ try: │
│ ❱ 650 │ │ resp.raise_for_status() │
│ 651 │ except requests.HTTPError: │
│ 652 │ │ raise (Exception(resp.text)) │
│ 653 │
│ │
│ ╭─────────────────────────────────── locals ────────────────────────────────────╮ │
│ │ body = { │ │
│ │ │ 'error': 'Unimplemented', │ │
│ │ │ 'message': 'The v1 API is deprecated. Please use /v2 apis' │ │
│ │ } │ │
│ │ chroma_error = None │ │
│ │ resp = <Response [410]> │ │
│ ╰───────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /usr/lib/python3/dist-packages/requests/models.py:1024 in raise_for_status │
│ │
│ 1021 │ │ │ ) │
│ 1022 │ │ │
│ 1023 │ │ if http_error_msg: │
│ ❱ 1024 │ │ │ raise HTTPError(http_error_msg, response=self) │
│ 1025 │ │
│ 1026 │ def close(self): │
│ 1027 │ │ """Releases the connection back to the pool. Once this method has been │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ http_error_msg = '410 Client Error: Gone for url: │ │
│ │ http://10.152.183.193:80/api/v1/tenants/default_'+6 │ │
│ │ reason = 'Gone' │ │
│ │ self = <Response [410]> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
HTTPError: 410 Client Error: Gone for url: http://10.152.183.193:80/api/v1/tenants/default_tenant
First of all, the command input parameters are completely different from the README! I have a chromadb deployed as an STS on local k8s with token auth. How does the
cdpCLI connect to it? Doesn't it require any kind of credentials? And how to specify the tenant?Error: