containers / podman-desktop-extension-ai-lab

Work with LLMs on a local environment using containers
https://podman-desktop.io/extensions/ai-lab
Apache License 2.0
170 stars 31 forks source link

Importing recipe from version control (git) #1095

Open axel7083 opened 4 months ago

axel7083 commented 4 months ago

Is your feature request related to a problem? Please describe

After some discussion with people, sharing custom recipes is a bit tedious, we could other an import section allowing to import recipe from a git repository.

Describe the solution you'd like

A import button, copy paste the repository.

By default it would be looking at the root repository for the ai-lab.yaml file otherwise would ask the user where it is located.

We could also let them choose to import a local ai-lab.yaml.

Steps

Local import

TODO

feloy commented 4 months ago

Is your feature request related to a problem? Please describe

After some discussion with people, sharing custom recipes is a bit tedious, we could other an import section allowing to import recipe from a git repository.

Describe the solution you'd like

A import button, copy paste the repository.

By default it would be looking at the root repository for the ai-lab.yaml file otherwise would ask the user where it is located.

I remember you described during a call the problems encountered when trying to add a recipe to the catalog. But I don't remember you mentioned the possibility for the user to have its own catalog.json file in ~/.local/share/containers/podman-desktop/extensions-storage/redhat.ai-lab/catalog.json. Was this possibility considered by the users? (I understood you talked about rebuilding the extension with the modified catalog file)

axel7083 commented 4 months ago

I remember you described during a call the problems encountered when trying to add a recipe to the catalog.

I am not sure to see exactly what issue we are talking about.

But I don't remember you mentioned the possibility for the user to have its own catalog.json file in ~/.local/share/containers/podman-desktop/extensions-storage/redhat.ai-lab/catalog.json. Was this possibility considered by the users? (I understood you talked about rebuilding the extension with the modified catalog file)

We currently allow user to have a user-catalog.json file located in the extension-storage yes, the format is the same as the one inside the assets folder. We are mixing both at runtime if exists. Currently we only offer the user to add models in it through the UI, but you can technically add recipe in it.

The issues that may happen are in the following cases;