I use the following line to add langchain documents to a chroma database: Chroma.from_documents(docs, embeddings, ids=ids, persist_directory='db')
when ids are duplicates, I get this error: chromadb.errors.IDAlreadyExistsError
how do I catch the error? (duplicate ids are expected - I expect Chorma to not add them)
I've tried identifying the error in langchain documentation. Not sure how to catch it.