es-ude / elastic-ai.creator

elastic ai.creator
MIT License
16 stars 2 forks source link

Use more convenient path objects #371

Open julianhoever opened 3 months ago

julianhoever commented 3 months ago

Currently, the ElasticAI.Creator uses custom path objects (InProjectPath, OnDiscPath, ...), which are not very intuitive and easy to use based on user experience. Therefore, we should replace these custom path objects with a more standardized path structure (e.g. pathlib.Path) if possible. This should make the ElasticAI.Creator more understandable.

glencoe commented 3 months ago

Tbh... i'd like to go even a step further and use something like a registry for architectures/entities. Each architecture/entity specifies a default name and before we produce code or in the moment an architecture/entity gets registered, we automatically generate the correct name (to avoid collisions). Then independently from that we can let an algorithm run over that registry and generate file paths and write the content there.

This way, developers would not have to worry about name collisions and we'd be in control about where/how resulting files will be stored.