I forgot to say, once you get familiar with jazz chords, they can give you an 'in' to improvising.
If you take Dm in a song, a jazz improvisor will see that as a basic chord. As a guitarist you would comp. a specific chord which might be Dm9, Dm11, Dm7 or whatever. These chords you learn (hopefully they are the movable ones, since they are much more useful in jazz as you can just move them up or down for different keys) instantly give you some of the notes you can play for soloing and you know they will be ok since they derive from the chord. If you are using a pick, just sweep down them (but do not make this a habit for all your soloing as you will sound very boring) or with fingers just pluck out a few in different ways. For instance, if you have learnt a Dm9 and Dm11 you can change shapes/positions to get the other and pluck a few of those notes, then swap to the other and outline some notes there, then maybe comp the chord as a musical comment to your previous notes. All the while the song is at the Dm (basic) during this.
If you have not got one, a jazz guitar chord book would be useful. But be careful, some of them are like a dictionary (listing every single possibility.) While something like this is useful, a poet or writer does not memorize the dictionary in order to do their creative work. What you need is to take a few chord progressions and configure them in different ways within what you know… different specific chords leading to the next chord and so on. Look at the formations and shapes and the notes you are holding down and use those as a basis for starting to solo. You might not need to use the actual shape when soloing the single notes either (depends.) Just that you have it in your mind onto the fretboard so you know where that chord lives, so you can finger to those frets for the solo.

This is not the only way, but might help you?
Ask more questions! There are lots of us here to help.

Have fun.