That said, for `createAliasMap`, don't you think you could create a deterministic mapping from and to UUIDs <-> word chains? That way, no additional state would be needed. [Might require fairly long word chains...]
I have built id-agent to solve the 3 major pain points with using UUIDs with LLMs:
1. Increased token usage 2. Incorrect ids in the output tokens because of hallucination 3. Poor readability when debugging prompts and traces
While building agent-qa, I encountered challenges with ids, since each test, suite, and run artifact has a UUID associated with it. The AI agents often made mistakes and referenced incorrect entities. With id-agent, I was able to achieve a token-efficient way of defining unique ids which can be easily differentiated. The prefixed id path drastically reduces the hallucination rate.
Do check out agent-qa: Open-source Agentic QA Harness with Memory https://vostride.com/
> Where UUIDs cost ~23 tokens and get hallucinated by LLMs
How does this solve the hallucination problem?
Just removing the - from the example UUID takes it from 26 tokens to 18
nither•18m ago