HN user

leroman

918 karma

https://romansky.dev

Posts32
Comments184
View on HN
github.com 7d ago

Show HN: TUI wrapper for cargo-nextest, Clap-powered xtasks, and more

leroman
2pts0
github.com 8d ago

Show HN: TUI wrapper for cargo-nextest, Clap-powered xtasks, and more

leroman
1pts0
capakit.com 1mo ago

Show HN: Sandbox AI-app lifecycle, from build to run

leroman
6pts1
github.com 11mo ago

Show HN: Prompt Engineering Templating Language and CLI Tool

leroman
2pts0
theconversation.com 11mo ago

Freddie Mercury's Religion

leroman
7pts2
secure.skype.com 1y ago

Export your Skype data before the May shutdown

leroman
1pts0
www.youtube.com 1y ago

Andrej Karpathy: Deep Dive into LLMs Like ChatGPT [video]

leroman
582pts46
github.com 1y ago

Show HN: LLM Templating – import files into prompt

leroman
3pts0
github.com 1y ago

Show HN: LLM Prompting Templating

leroman
2pts0
github.com 1y ago

Show HN: LLM Prompting Templates for Files / Source-Code

leroman
2pts0
github.com 1y ago

Show HN: Copy Folder Contents for Easy Prompting

leroman
4pts0
github.com 1y ago

Show HN: Convert HTML DOM to semantic markdown for use in LLMs

leroman
146pts56
huggingface.co 2y ago

Easy and low cost model training on HF "DGX cloud"

leroman
2pts1
www.tomshardware.com 2y ago

The Sphere in Las Vegas features 4PB of flash memory at 400 GB/s to deliver 16K

leroman
2pts0
www.nytimes.com 2y ago

Data-center power usage is straining the power grid

leroman
3pts1
world.hey.com 2y ago

37Signals Left the Cloud

leroman
53pts14
pth.ai 2y ago

Show HN: Pth.ai – AI-Guided Application of Best Practices from Business Books

leroman
2pts0
ideas.digitalocean.com 3y ago

Pgvector extension now supported on managed DO PostgreSQL clusters

leroman
3pts0
www.cuetap.com 3y ago

Show HN: GPT3 free sales Battlecard generator

leroman
3pts0
www.nytimes.com 3y ago

SBF interview: “I’ve had a bad month”

leroman
2pts0
www.cuetap.com 3y ago

Show HN: I built a competitor tracking automation SaaS tool

leroman
3pts0
www.inc.com 4y ago

A book about lichens saved Amazon in the early days

leroman
3pts1
www.nytimes.com 4y ago

Save America’s Patent System

leroman
2pts0
www.kqed.org 4y ago

How Starfish move without having a brain

leroman
2pts0
trello.com 4y ago

Trello is down [16:00 UTC] - back up now [16:13]

leroman
4pts1
www.iflscience.com 4y ago

Scientists have created plane that flies using ion thrusters and no fuel

leroman
1pts2
www.motortrend.com 4y ago

NASA and Orbis Engineer Brakes Cool Enough for the Tesla Model S Plaid

leroman
4pts0
www.youtube.com 4y ago

Why New York’s Billionaires’ Row Is Half Empty

leroman
2pts1
www.gandi.net 4y ago

Price increase on .io domains on January 1, 2022 (Renewal: $55.00)

leroman
286pts294
9to5mac.com 4y ago

Tech companies are jumping on the M1-Max bandwagon

leroman
5pts1

The token-economics for closed source models are different, they are optimizing for 200 USD tokens worth of software engineer monthly usage, they will increase per token price as models or harnesses are more optimized.

What model are you working with where you still get good results at 25k?

To your q, I make huge effort in making my prompts as small as possible (to get the best quality output), I go as far as removing imports from source files, writing interfaces and types to use in context instead of fat impl code, write task specific project / feature documentation.. (I automate some of these with a library I use to generate prompts from code and other files - think templating language with extra flags). And still for some tasks my prompt size reaches 10k tokens, where I find the output quality not good enough

The biggest challenge an agent will face with tasks like these is the diminishing quality in relation to the size of the input, specifically I find input of above say 10k tokens dramatically reduced quality of generated output.

This specific case worked well, I suspect, since LLMs have a LOT of previous knowledge with HTML, and saw multiple impl and parsing of HTML in the training.

Thus I suspect that in real world attempts of similar projects and any non well domain will fail miserably.

It's hilarious they put Claude 3.5 Sonnet in the far right corner while it scores the highest and beats most of Grok's numbers.

This is some great feedback, thanks!

1. there some crazy links with lots of arguments and tracking stuff in them, so it gets very long, the refification turns them into a numbered "ref[n]" scheme, where you also get a map of ref[n]->url to do reverse translation.. it really saves a lot, in my experience. It's also optional, so you can be mindful when you want to use this feature..

2. I tried to keep it domain specific (not to reinvent HTML...) so mostly Markdown components and some flexibility to add HTML elements (img, footer etc).

3. Not sure I'm sold with replacing the switch, it's very useful there because of the many fall through cases.. I find it maintainable but if you point me to some specific issue there it would help

4. There are some built in functions to traverse and modify the AST. It is just JSON in the end of the day so you could leverage the types and write your own logic to parse it, as long as it conforms to the format you can always serialize it, as you mentioned..

5. The AST is recursive so not flat.. sounds like you want to either write your own AST->Semantic-Markdown implementation or plug into the existing one so I'll this in mind in the future

6. Sounds cool but out of scope at the moment :)

7. This feature would serve to help with scraping and kind of point the LLM to some element? Then the part I'm missing is how you would code this in advance.. There could be some meta-data tag you could add and it would be taken through the pipeline and added on the other side to the generated elements in some way..

After removing the noise you can distill the semantic stuff where ever possible, like meta-deta from images, buttons, etc, and see some structures emerge like footers and nav and body.. And many times for the sake of SEO and accessibility, websites do adopt quite a bit of semantic HTML elements and annotations in respective tags..

Markdown being a very minimal Markup language has no need for much of the structural and presentational stuff (CSS, structural HTML), HTML has many many artifacts which are a huge bloat and give no semantic value IMO.. It's the goal here to capture any markup with semantic value, if you have examples this library might miss, you are welcome to share and I will look into it!

Will add some side-by-side comparisons soon! the goal is not just to translate 1:1 HTML to markdown but to preserve any semantic information, this is generally not the goal for these tools. Some specific features and examples are in the README, like URL minification and optional main section detection and extraction (ignoring footer / header stuff).

Author here- it's a good point to have some benchmarks (which I don't have..) but I think it's well understood that minimizing noise by reducing tokens will improve the quality of the answer. And I think by now LLMs are well versed in Markdown, as it's the preferred markup language used when generating responses

OpenAI: Model Spec 2 years ago

No idea if its a valid approach but possibly train with a hidden layer containing a “role”?

Thanks to investing into k8s I was able to migrate a non trivial production with minimal downtime between cloud providers 3 times now, who offered us free credits, without too much friction.