4 ms·
Are you passing the entire context of the page code to the LLM to get back the XPath?
by cloudking 3y ago
Are you passing the entire context of the page code to the LLM to get back the XPath?
- aronse 3y agoYes, the whole document via document.documentElement.outerHTML. Surely there's a lot of optimizations we could look into but this was more to try if the model could localize elements via XPath by using screenshot + HTML. It's doing a decent job for the most part, I definitely have seen some XPath hallucinations though.