SillyTavern / SillyTavern-Extras

Extensions API for SillyTavern.
GNU Affero General Public License v3.0
549 stars 124 forks source link

ChromaDB: deprecated configuration of Chroma. #92

Closed aetherwu closed 1 year ago

aetherwu commented 1 year ago

Error while run with chromadb:

Initializing ChromaDB
Traceback (most recent call last):
  File "/home/ubuntu/SillyTavern-extras/server.py", line 268, in <module>
    chromadb_client = chromadb.Client(Settings(anonymized_telemetry=False, persist_directory=args.chroma_folder, chroma_db_impl='duckdb+parquet'))
  File "/home/ubuntu/miniconda3/envs/extras/lib/python3.10/site-packages/chromadb/__init__.py", line 107, in Client
    system = System(settings)
  File "/home/ubuntu/miniconda3/envs/extras/lib/python3.10/site-packages/chromadb/config.py", line 175, in __init__
    if settings[key] is not None:
  File "/home/ubuntu/miniconda3/envs/extras/lib/python3.10/site-packages/chromadb/config.py", line 110, in __getitem__
    raise ValueError(LEGACY_ERROR)
ValueError: *You are using a deprecated configuration of Chroma.*

If you do not have data you wish to migrate, you only need to change how you construct
your Chroma client. Please see the "New Clients" section of https://docs.trychroma.com/migration.

Related packages: chroma-hnswlib-0.7.1 chromadb-0.4.3

SillyTavern-extras: Latest commits on main.

Python: Python 3.10.12

Conda: conda 23.5.2

Cohee1207 commented 1 year ago

Fixed in main