a2ui-project / a2ui-project/a2ui
Support Component aliases and renaming in the inference pipeline
- Dominant language
- TypeScript
- Stars
- 16.4k
- Forks
- 1.3k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 134
Description
Models may accidentally refer to components that don't exist, by using synonyms or different spellings of existing components.
We can recover from these errors by allowing aliases to be registered in the inference pipeline, to map the names used by the model, to the actual implementations.
Aliases can also be used for prompt tuning. It might turn out that it would be better for `Card` to be called `ContainerWithBorder` from an inference perspective, and that this would improve eval results. We can add a 'renaming' mapping in the inference pipeline so that we can try different names at the inference level, without needing to rename components in our clients etc.
Contributor guide
Research direction
Look at the inference pipeline code to understand how components are currently resolved. Identify where component names are mapped to implementations. Add a mechanism to register aliases or renaming mappings, likely in a configuration or mapping file. Ensure the pipeline can fall back to aliases when a direct match fails. Test with models that use synonyms or different spellings to verify recovery works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100