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.
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.