ishan0102 / vimGPT

Browse the web with GPT-4V and Vimium
MIT License
2.6k stars 197 forks source link

integrated instructor library + prompt improvements #20

Closed benfield97 closed 8 months ago

benfield97 commented 9 months ago

The method of forcing JSON output worked decently well but didn't check for the correct key - value pairs. The instructor library allows much greater control over the exact parsing of LLM outputs and ensures adherence to structure. I also added some prompt improvements.

This seems to work just as well as before, simplified the code base and also makes it easier to make further improvements to the prompt + ensure deterministic outputs in any additional LLM calls. I've also been working on integrating the DOM accessibility tree and the instructor library makes things MUCH easier.