WrenAI icon indicating copy to clipboard operation
WrenAI copied to clipboard

Allow for import of MDL defining model relationships

Open matthewhegarty opened this issue 9 months ago • 4 comments

Is your feature request related to a problem? Please describe.

I am a new user and I found that it could be cumbersome to create relationships between model entities by hand.

I asked on Discord whether it was possible to import relationships via JSON. Since I use Django, it may be possible to export from Django model to a JSON format which defines the relationships, this would save the manual effort, and would allow for some synchronization to handle model changes. Similar tools could be built for other frameworks and DBs.

There is a model descriptor (MSL format) which could be used.

Example JSON.

matthewhegarty avatar Feb 28 '25 10:02 matthewhegarty

Hi @matthewhegarty thanks for reaching out. I'll put it into our roadmap backlog.

wwwy3y3 avatar Mar 03 '25 09:03 wwwy3y3

@wwwy3y3 automated MDL creation and load is a double edged sword. It kills the user oversight that is implicit in manual relationship creation. We need to make sure that any automated process of this nature has some level of validation built into it.

narsik123 avatar Apr 18 '25 13:04 narsik123

perhaps this is a step on the way to this

mishaaskerka avatar May 12 '25 22:05 mishaaskerka

perhaps this is a step on the way to this

Cube looks very interesting. How do you envision adoption in WrenAI

narsik123 avatar May 19 '25 17:05 narsik123