fix chromadb ut

This commit is contained in:
betterwang 2024-03-07 13:56:30 +08:00
parent 2ffa9e12b9
commit 91c58d04cf
3 changed files with 3 additions and 2 deletions

View file

@ -12,7 +12,7 @@ from metagpt.document_store.chromadb_store import ChromaStore
def test_chroma_store():
"""FIXMEchroma使用感觉很诡异一用Python就挂测试用例里也是"""
# 创建 ChromaStore 实例,使用 'sample_collection' 集合
document_store = ChromaStore("sample_collection_1")
document_store = ChromaStore("sample_collection_1", get_or_create=True)
# 使用 write 方法添加多个文档
document_store.write(