The method I used wasn’t super precise on the edges, but it might be good enough to generate the walls…
Basically you need highly subdivided grids for the floors, and you can use a voronoi pattern as a basis to generate the walls, here is a basic starting point using face group boundary node that is much better to separate the walls :