I am no expert, but I also have an older house, so here is my layperson’s advice. To be safe, the best bet is to hire a certified lead inspector, who can give you legitimate advice.
Do you have little kids? If so, the safest plan of action is probably to remove and replace the topsoil. Raking will probably just turn it into a powder and make things worse. Plus, if the house is really old, the previous paint jobs may have contaminated the soil already.
For vegetables/edible plants, you definitely will want to put in new soil and/or raised beds. My understanding is that lead transfers more into the leaves of plants (so things like lettuce/herbs) than into fruits, but you shouldn’t plant anything edible in a bed with lots of paint chips.
Hope that helps. Again, legal disclaimer, you should hire an inspector if you’re really concerned!