How to generate uv attribute for buffer geometry (mesh)

I loaded a group of meshes (buffer geometry) in the threejs scene, and just noticed that they don’t have uv attribute at all. How to generate uvs for geometry.attributes