ValueError: You are using a deprecated configuration of Chroma.

需要修改的代码

找到这行代码:

python

client = chromadb.Client(Settings(chroma_db_impl="duckdb+parquet", persist_directory=str(CHROMA_DIR)))

替换为:

python

# 使用新的持久化客户端
client = chromadb.PersistentClient(path=str(CHROMA_DIR))
© 版权声明

相关文章

暂无评论

none
暂无评论...