GithubHelp home page GithubHelp logo

ryan6416 / prompt-enhancer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lim-hyo-jeong/prompt-enhancer

0.0 0.0 0.0 53 KB

Prompt Engineering at Your Fingertips!

Home Page: https://prompt-enhancer.streamlit.app/

License: MIT License

Python 100.00%

prompt-enhancer's Introduction

๐Ÿš€ Prompt Enhancer

Prompt Engineering at Your Fingertips!

Welcome to Prompt Enhancer, a streamlit-powered application designed to improve your prompts effortlessly. This tool integrates various prompt engineering principles, as outlined in the paper Principled Instructions Are All You Need for Questioning LLaMA-1/2, GPT-3.5/4. With Prompt Enhancer, you can easily apply prompt engineering techniques validated by latest research through a user-friendly interface, enhancing your communication with AI models.

Getting Started

1. Online access :

You can access the Prompt Enhancer website directly by visiting the following URL: https://prompt-enhancer.streamlit.app/

2. Local setup :

  1. Clone the Prompt Enhancer repository:
    git clone https://github.com/lim-hyo-jeong/Prompt-Enhancer.git
    
  2. Install the required packages:
    pip install -r requirements.txt
    
  3. Get OpenAI API key: You can get your OpenAI API key here
  4. Run Prompt Enhancer:
    streamlit run main.py
    

How to Use

  1. Prompt Input: Enter the prompt you want to enhance in the designated text area.
  2. Skill Application: Select the skills you want to apply to refine your prompt.
  3. Phrase Inclusion: Choose whether to add specific phrases that guide the AI towards generating better responses.
  4. Enhancement: Click the "Enhance!" button to apply your selections and view the enhanced prompt.

Research and Inspiration

Prompt Enhancer incorporates various prompt engineering techniques grounded in the principles from VILA-Lab's Principled Instructions Are All You Need for Questioning LLaMA-1/2, GPT-3.5/4 (2024). Additionally, the tool offers users the option to incorporate emotional prompts such as "This is very important to my career," inspired by Microsoft's Large Language Models Understand and Can Be Enhanced by Emotional Stimuli (2023). Users can also choose to include phrases like "Take a deep breath and work on this problem step-by-step," which encourage AI to deliver better responses, which is validated by Google DeepMind's Large Language Models as Optimizers (2023).

Technical Stack

  1. Streamlit: Creates an intuitive user interface for an engaging user experience.
  2. LangChain: Seamlessly integrates large language models into the application.
  3. OpenAI API: Connects to the OpenAI models to provide real-time prompt enhancement.

For Feedback

prompt-enhancer's People

Contributors

lim-hyo-jeong avatar ryan6416 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.