Skip to content

Commit

Permalink
Merge pull request #1242 from Mizuki8783/hotfix-a_chunk_doc
Browse files Browse the repository at this point in the history
Changed Error type
  • Loading branch information
penguine-ip authored Jan 2, 2025
2 parents 770f1f6 + 75b97a8 commit 495b3dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepeval/synthesizer/chunking/doc_chunker.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def a_chunk_doc(self) -> List[LCDocument]:
)
try:
collection = client.get_collection(name=collection_name)
except ValueError:
except chromadb.errors.InvalidCollectionException:
# Collection doesn't exist, so create it and then add documents
collection = client.create_collection(name=collection_name)

Expand Down

0 comments on commit 495b3dd

Please sign in to comment.