it is I, again. Have one weird issue getting `num_...
# community-help
e
it is I, again. Have one weird issue getting
num_of_documents
Copy code
def get_num_documents_from_metadata(self, collection_name):
        """
        Fetches the number of documents in a collection using the collection metadata.
        """
        collection_metadata = self.client.collections[collection_name].retrieve()
        # pprint(collection_metadata)
        return collection_metadata["num_documents"]