The potentiometer resistor is for controlling for the voltage for the input which connects straight to the non inverted to every op amp, when the inverted input voltage drop is different on every op amp so it works like a comparator, then it decodes from decimal to 7 segment display.