2 ms·
"... for some reason the models still think markup languages are regular and can be handled with regular expressions" Presumably you mean this code here? https
by simonw 2y ago
"... for some reason the models still think markup languages are regular and can be handled with regular expressions"
Presumably you mean this code here? https://github.com/simonw/llm-hacker-news/blob/e945c84e825f4d52f2b9307c8a8bd443fc593ffb/llm_hacker_news.py#L76-L101 https://github.com/simonw/llm-hacker-news/blob/e945c84e825f4...
I reviewed it. For this particular application (turning JSON from https://hn.algolia.com/api/v1/items/43615912 https://hn.algolia.com/api/v1/items/43615912 into a more concise format suitable for feeding into an LLM like https://github.com/simonw/llm-hacker-news/blob/e945c84e825f4d52f2b9307c8a8bd443fc593ffb/tests/test_hacker_news.py#L11-L17 https://github.com/simonw/llm-hacker-news/blob/e945c84e825f4...) it's perfectly adequate (or "good enough" to quote your comment). You're welcome to convince me otherwise!