6/7
See pic. It is self-explanatory.
Blue, red and green lines have values as shown above.
BA=1, AC=2
On the triangle BDC, name angle C by a.
By applying Al-Kashi’s law of cosines to triangles BDC and ADC we get the following two equations:
(2 + r)2 = (1 + r)2 + 32 – 2(1 + r)(3)cos a,
(3 – r)2 = (1 + r)2 + 22 – 2(1 + r)(2)cos a,
Solving which we get: r = 6/7