# Convert the documents to YAML format
yaml_docs = [yaml.dump(doc, sort_keys=False) for doc in employees]