gensim.similarities.Similarity.add_documents

Similarity.add_documents(corpus)[source]

Extend the index with new documents.

Internally, documents are buffered and then spilled to disk when there’s self.shardsize of them (or when a query is issued).