def add_docs(self, docs: List[ChromaDoc], **kwargs):
        """Add a list of documents to collection"""
        if docs:
            self.collection.add(
                documents=[d.doc for d in docs],
                # we embed for you, or bring your own
                metadatas=[d.metadata for d in docs],
                # filter on arbitrary metadata!
                ids=[d.id for d in docs],  # must be unique for each doc
            )
Add a list of documents to collection
autochain/tools/internal_search/chromadb_tool.py