Comment

Comment by pranshuchittora

LLMs are good at predicting words, since each word in the id is ~1 BPE token. But uuids are random hex characters, this is where LLMs struggle to output the right ids.

You can use the .from method https://github.com/vostride/id-agent/#idagentfrominput-opts

To convert uuid or any text to id-agent based id. Then do the LLM inference and then convert it back to UUID.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton