LangbaseInc / langui

UI for your AI. Open Source Tailwind components tailored for your GPT, generative AI, and LLM projects.
https://LangUI.dev
MIT License
2.49k stars 128 forks source link

Component Request: Container for non-textual output #7

Open mattgiles opened 1 year ago

mattgiles commented 1 year ago

Greetings! What a lovely and simple project.

A lot of our use cases involve a canvas container for non-text responses , or text responses attended by non-text output (e.g. images, tabular data, interactive data visualizations, etc). This typically sits side by side with the prompt container.

It would be great to have a styled component designed to play well with the other components in langui that boxed off whatever we might want to display. Hope that makes sense / is potentially in scope.

Thanks!

ahmadbilaldev commented 1 year ago

Hi @mattgiles, that's a great suggestion. I will work on adding it.

In the meantime, could you provide an example component that will go inside this new container? Even a screenshot would do. It will help me test and optimize the design. Thanks for the feedback!

mattgiles commented 1 year ago

Sure thing. We use a super simple prototype at the moment (hence interest in langui), with the component I'm talking about on the right:

image

Unfortunately, I can't share the output, but I think good use cases to think about are (a) hosted visualizations like vega-lite, (b) LLM-generated images like DALL-E, and (c) HTML tables.

Which is all to say, my use case is really just for a canvas that might display any number of things, depending.

ahmadbilaldev commented 1 year ago

Got it. Thanks for the example. I'll cook something up and let you know.