Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install multiple Rel model files with a structure? #11

Open
mbravenboer opened this issue May 14, 2022 · 6 comments
Open

How to install multiple Rel model files with a structure? #11

mbravenboer opened this issue May 14, 2022 · 6 comments

Comments

@mbravenboer
Copy link

I noticed that when you install a model, it does not use the path specified for the name of the model:

$ rai load-model foo/bar/model.rel

Creates a file model.rel

This seems fine for the load-model command because you can use --model, but I don't know how I install multiple files in a single transaction with load-models and get them in a hierarchical structure.

Of course, using the path may not work well if people prefer to specify absolute path options. Maybe a model-prefix option would be handy?

@NHDaly
Copy link
Member

NHDaly commented May 27, 2022

Related: we originally planned to have the capability to upload (and download) an entire directory structure.

Would it make sense to pair this feature request with that capability?

@vilterp
Copy link
Contributor

vilterp commented May 27, 2022

maybe like

rai load-model --from <local_dir> --to <database-dir>

kind of like aws s3 copy <from> <to>?

At this point it's pretty close to the sync feature which @bradlo has said is on the list. Kind of like what @NHDaly is saying.

@mbravenboer
Copy link
Author

I think it would be helpful to support uploading a selection of files next to the sync feature.

I was thinking:

$ rai load-models foo/bar.rel a/b/c.rel

Uses foo/bar and a/b/c as module names

If needed, we can add options to specify the source prefix to remove (eg for absolute paths) or the target prefix to add.

@NRHelmi
Copy link
Contributor

NRHelmi commented Aug 4, 2022

This a proposal for this requirement #28

@vilterp
Copy link
Contributor

vilterp commented Aug 9, 2022

Here’s @hersker13’s CLI wrapper script to do this: https://github.com/RelationalAI/sales-engineering/blob/main/customer/zebra/poc3/load_source.sh

@billscheidel-rai
Copy link

Note: This issue has been migrated to https://relationalai.atlassian.net/browse/RAI-5300.

This link is only accessible to employees of RelationalAI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants