You asked

Which lens should I add to a sony a7 iv for portraits?

For portraits, the guide says the lens matters far more than the body, so the Sony a7 IV is already a good start. Look for a lens that gives you a flattering distance and a soft background. Three from this camera's catalogue suit that:

The guide's own starting advice is a fast standard prime for people, such as a 50mm f/1.8 on full frame, so if you want one lens to start, see your first lenses. Portrait lenses are also covered on the portraits page.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.