Generative AI applications - Tips for Prompting

Tips for prompting

  • Be detailed and specific
  • Guide the model to think through its answer
  • Experiment and iterate

Be detailed and specific

  • Give sufficient context for LLM to complete the task
  • Describe the desired task in detail

Guide the model to think through its answer

  • Give it clear step-by-step instructions to follow

Experiment and iterate

  • No perfect prompt for every person or situation!
  • Instead, better to develop process for improving prompts through iteration
  • the process of prompting is not about starting off with the right prompt, It's about starting off with something and then seeing if the results are satisfactory and knowing how to adjust the prompt to get it closer to the answer that you want

Iteratively improving your prompt

  • idea:what you want the LLM to do,
  • prompt: just express that in a prompt
  • LLM response=>shape your idea and modify the prompt

Prompting process

  • Be clear and specific in prompt
  • Think about why result isn't giving desired output
  • Refine your prompt
  • repeat

Tip: Don't overthink the initial prompt, Just try something quikly and imporve it over time!

Caveats: Be careful with

  1. confidential information
  2. whether you trust the LLM output
相关推荐
小淮AI2 小时前
从“刷题”到“追问”:AI课堂正在重塑哪些学习旧习惯?
人工智能·学习
cui_ruicheng3 小时前
LangChain 应用开发(十四):Agent 上下文与记忆机制
服务器·人工智能·python·langchain
飞哥数智坊3 小时前
直播半小时,我聊了聊 Agent 最常见的 3 个疑问
人工智能
ggb喔4 小时前
AI 原生攻防时代:2026 年渗透测试与逆向开发的范式重构
人工智能·重构
宸津-代码粉碎机4 小时前
AI攻防战升级!基于Spring AI构建Java应用自动免疫安全体系
java·大数据·开发语言·人工智能·python·安全·spring
克里斯蒂亚诺更新5 小时前
机器学习库sklearn的主要任务
人工智能·机器学习·sklearn
先跑起来再说5 小时前
Qavor:一个能跑、能观测、能扩展的开源 AI Agent 工作台
人工智能·开源
Mr数据杨5 小时前
从文本特征到回归建模 Syllable Counting Model 实战解析
人工智能·数据分析·kaggle竞赛
HIT_Weston5 小时前
201、【Agent】【OpenCode】JS 语法:setTimeout 七种常用形式
人工智能·agent·opencode
维基框架5 小时前
萨尔瓦多学校免费上Grok 没账单的AI怎么限流
人工智能