add_document by using dict format