homanp / langchain-ui

🧬 The open source chat-ai toolkit
https://langchain-ui.vercel.app
MIT License
881 stars 160 forks source link

Figma design for `Prompt templates` UI #17

Open homanp opened 1 year ago

homanp commented 1 year ago

Summary

A user should be able to create and save LangChain compatible Prompt templates as per the specification here: https://python.langchain.com/en/latest/modules/prompts/prompt_templates.html

Expected behaviour

template = """ I want you to act as a naming consultant for new companies.

Here are some examples of good company names:

The name should be short, catchy and easy to remember.

What is a good name for a company that makes {product}? """

prompt = PromptTemplate( input_variables=["product"], template=template, )



## Design inspiration
The app boilerplate looks as follows. Perhaps a list/detail view would be appropriate for this.

<img width="2301" alt="Screenshot 2023-03-27 at 09 52 57" src="https://user-images.githubusercontent.com/2464556/227876609-048a76ce-1b7e-4be5-a60c-ceed6749d02e.png">