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

Figma design for Prompt templates UI #17

Open
homanp opened this issue Mar 27, 2023 · 0 comments
Open

Figma design for Prompt templates UI #17

homanp opened this issue Mar 27, 2023 · 0 comments
Labels
enhancement New feature or request user interface A UI issue

Comments

@homanp
Copy link
Owner

homanp commented Mar 27, 2023

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

  • A user should be able to create, update or destroy Prompt templates for further user down-stream in Agents of Chats.
  • The prompt template should support inserting variables, as seen in example below:
from langchain import PromptTemplate


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

Here are some examples of good company names:

- search engine, Google
- social media, Facebook
- video sharing, YouTube

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.

Screenshot 2023-03-27 at 09 52 57

@homanp homanp added enhancement New feature or request user interface A UI issue labels Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request user interface A UI issue
Projects
None yet
Development

No branches or pull requests

1 participant