on the drawing that Dan has posted, see the mounting spring on the lower left of the unit.... the filter will be below this spring going into the electric fuel pump, usually accessed from below the compartment....
some gensets have 2 identical filters, one of them in the location that I mentioned, and one on the carb and some dont.... and some units are fuel injected, so no carb...
because the lower filter is such a small filter and hard to access, I would recommend you get a 5/16" x 1/8"npt barb fitting and install it in place of the filter, and then install an inline filter in a location thats easy to access... you may need 12-18" of 5/16 fuel line to connect to the barb fitting so the fitler can be relocated. the little filter is one of the main reasons for generator issues, because it doesnt take much to cause a restriction....
I recommend a baldwin 836 inline filter, because its a water trap as well.... carry a spare.