The Prompt Engineering Lab serves as an Education and Experimentation Hub provided by The Generative Intelligence Lab @ FAU. Prompt Engineering is a rapidly evolving discipline at the intersection of Artificial Intelligence and Natural Language Processing. This lab is designed to help students, researchers, and developers experiment with the art of creating and refining prompts, offering easy-to-follow resources and opportunities to contribute, collaborate, and share their work.
Prompt Engineering has emerged as a critical component in unlocking the full potential of language models such as Phi, LLaMA, and Qwen. As AI systems continue to revolutionize problem-solving, mastering how to guide and optimize these models through effective prompting techniques is essential for cutting-edge research, practical applications, and future innovation.
This lab provides a hands-on learning environment where participants can actively apply their knowledge through Python code, Jupyter notebooks, and practical exercises designed to foster both experimentation and discovery.
Note: first, you need to Configure your Lab Environment:
- Configure Lab Environment for General Audience
- Configure Lab Environment for FAU Students
- Troubleshooting
- Zero-Shot
- Few-Shot
- Prompt Template
- Chain-of-Thought
- Meta Prompting
- Self Consistency
- ...
- (more to come; check Contributing
Once you have your installation completed (follow Configure Lab Environment), you can experiment with the out-of-the-box Prompt Engineering techniques being provided above OR create your own experiments by modifying the code in a few points (or creating new code).
MESSAGE = "What is 2 * log(10)?"TEMPLATE_BEFORE = "Act like you are a math teacher\nYour student is asking:"
TEMPLATE_AFTER = "Give only the answer; refrain from any more information"
PROMPT = TEMPLATE_BEFORE + '\n' + MESSAGE + '\n' + TEMPLATE_AFTERDocumentation about available parameters.
payload = create_payload(target="ollama",
model="llama3.2:latest",
prompt=PROMPT,
temperature=1.0,
num_ctx=100,
num_predict=100)