iterative / mlem.ai

✨ Landing page for MLEM
https://mlem.ai/
BSD Zero Clause License
27 stars 12 forks source link

docs: usage page (easy config) #190

Open jorgeorpinel opened 1 year ago

jorgeorpinel commented 1 year ago

MLEM has enough complication in it's setup that we probably need a wizard-like page for users to get up and running quickly on different platforms and set ups.

Examples:

aguschin commented 1 year ago

Good idea, @jorgeorpinel. We discussed this with @shcheklein and @mike0sv. The installation is the same everywhere now (pip install mlem). The different is in usage scenarios. So it could be:

I have [ CV | Table data | NLP ] task
...<the selected part is shown>...

I want to [ serve | build | deploy ] my model
...<the selected part is shown>...

To enable the first selector, we need to support CV and NLP. CV is going to be implemented in Q4, and NLP will probably be implemented in 2023Q1. Rn we can enable the 2nd selector only.

I plan to simplify GS in #188 now, but still keep the usage scenarios (build/serve/deploy) on separate pages. Once we support CV, it should be a good moment to get back to this and see how your suggestion may look like.

aguschin commented 1 year ago

@jorgeorpinel, reading your description update in https://github.com/iterative/mlem.ai/issues/129:

Show relevant parts of the .mlem file (link to full "). Truncate code block (link to full file in example repo).

At the same time in this issue you write:

to get up and running quickly

To my mind, the latter means that one should be able to copy-paste code and get a working example. To later modify it for one's needs. Then these two motivations are in contradiction with each other. Could you please clarify?

jorgeorpinel commented 1 year ago

get up and running quickly

means that one should be able to copy-paste code and get a working example

Yes but I didn't suggest that this quick usage page would be integrated into the Get Started. They can be separate things. I imagine it would be it's own page or some sort of separate widget you could expand or link from the GS and other docs, maybe even part of https://mlem.ai/doc/install.

aguschin commented 1 year ago

For the history: there was an attempt for that in https://github.com/iterative/mlem.ai/pull/246, but we decided it's not the right time to do it now. We can get back to this later.

The summary of a discussion with @omesser and @mike0sv we had about that attempt:

  1. This page tries to achieve two things: show use cases and provide code templates. In case of MLEM, this can be hard to achieve.
  2. The tabs doesn't look balanced: some have a lot of context, some do not.
  3. We can put it in different pages and result of adaptation to those locations may be different. In mlem.ai main page this should be catchy, while in docs it should be more detailed.
  4. Considering we have a lot of pages in docs already and we need to get more attention to MLEM, more useful to put it in mlem.ai main page and have a toggle like in CML https://cml.dev, or have a diagram like in https://lets-unify.ai
jorgeorpinel commented 1 year ago

tries to achieve two things: show use cases and provide code templates

How else can templates be organized (if not by use case) ?

put it in different pages

Adding templates everywhere is another possible strategy indeed. Currently docs are very descriptive and not copy-paste-able enough, in general.

have a diagram like in https://lets-unify.ai

Any good diagrams you come up with even if they're hand drawn please share them and we'll see where they can be useful. An image can truly = 1000 words!

aguschin commented 1 year ago

I had some ideas in https://miro.com/app/board/uXjVP5qFYLg=/, maybe they will be useful at some point.