You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Chromadb 0.4.5对接DBFS时遭遇OperationalError: disk I/O error求助

ChromaDB 0.4.5 存储到DBFS时触发磁盘I/O错误

使用ChromaDB 0.4.5版本,本地存储向量库功能正常,但尝试将向量库存储到DBFS时,仅执行以下代码就抛出OperationalError: disk I/O error错误:

vector_db_path = '/dbfs/FileStore/HuggingFace/data/demo_langchain/test_vector_db/'
client = chromadb.PersistentClient(path=vector_db_path)

曾找到针对同类错误的解决方案,尝试执行以下代码设置SQLite锁定模式,但问题依旧:

conn = sqlite3.connect("/dbfs/FileStore/HuggingFace/data/demo_langchain/test_vector_db/chroma.sqlite3")
curr = conn.execute('PRAGMA locking_mode = EXCLUSIVE')
client = chromadb.PersistentClient(path=vector_db_path)

推测该问题大概率是ChromaDB的新问题,因为其近期已从DuckDB切换到SQLite作为底层存储。

内容的提问来源于stack exchange,提问作者David Makovoz

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.13 14:34:54