So how can i separate yeast from beer during transferring in kegs?
I'm talking about ale yeast top fermentation
If I transfer slowly?
I just throw away the last liters?
I found out very quickly that a good rule of thumb is to plan to rack to fermenter 10% more than you want to package. This has been very consistent, over 100 batches in. Thus, if you want 5gallons packaged, plan to get 5.5gal to the fermenter. Walk your system losses backwards from there to figure out pre-boil and strike/sparge volumes.
I started out with glass carboys and a siphon which let me get close to the yeast cake after crashing without too much beer loss. I eventually moved to buckets & Bubblers with spigots that do the same as the cake settles below the spigot.
After racking to a keg or bottling bucket, I swirl the cake very well, portion out to sanitized mason jars and let them re-settle at room temp for about 30 minutes. Then I decant the 'yeasty beer' on top to a flask or another jar and cold crash that for about 4-7 days in the fridge. Once the yeast is compact and the beer on top is clear, I decant all but an equal volume of beer as the yeast, swirl well again and transfer to another smaller sanitized jar. (usually 4oz.) That alone is enough for a full pitch for most ales, but I sometimes build a starter anyway especially if it is more than a few months old.
I also top-crop yeast that make a good Krausen that lasts a couple of days. In that case, I usually don't bother with the cake after racking.
*note, while I'm sure mileage varies, in my personal experience I can't get really clear beer unless I cold crash at 29–31℉ for several days. 32 or above takes a week plus, and yes, that is using fining agents too.