Prompt Engineering Master Class for ENGINEERS with Ollama and LLM (Q4 2024 Update)

  Рет қаралды 28,490

IndyDevDan

IndyDevDan

Күн бұрын

Пікірлер: 119
@k22marie
@k22marie 2 ай бұрын
am I the only one who takes active notes on Dan's videos? Earlier this year, I wrote to myself "Choose to consume content that's worth remembering". IndyDevDan's content is always an immediate click. Thanks for pumping out great content, Dan.
@ПотужнийНезламізм
@ПотужнийНезламізм 2 ай бұрын
Problem is I don’t remember it after 1week 😄, so just consume it and forget
@SwePalm
@SwePalm 2 ай бұрын
why not use NoteBookLM for this?😀
@saabirmohamed636
@saabirmohamed636 2 ай бұрын
me too pausing like crazy. love these videos ...i wait for every single one!
@YitzhakBarGeva1
@YitzhakBarGeva1 2 ай бұрын
@@ПотужнийНезламізм Make Anki cards and review daily
@WaytogoforAI
@WaytogoforAI 2 ай бұрын
Taking the transcriptions and posting them into Claude for notes. 🎉
@edzynda
@edzynda 2 ай бұрын
Bro. This video is hands down the best kept secret in all of prompting. I toyed around with super small 1b parameter models like SMOLLM2 and basically gave up on trying to get them to do anything useful but the XML tip was basically the biggest unlock I've come across in this space. It should have been completely obvious but I've never seen this mentioned anywhere else.
@dannysimonknows
@dannysimonknows 2 ай бұрын
Couldn't have said it better myself word for word
@indydevdan
@indydevdan 2 ай бұрын
100% - the GenAI Eng ecosystem is sleeping on xml but not us.
@tuaitituaiti1565
@tuaitituaiti1565 Ай бұрын
We concur +1 & team xml un lock. From a minute old newbie sub
@johan_vd_meer
@johan_vd_meer 2 ай бұрын
Tvm Dan! Step-by-Step Implementation 1. Build a Basic Prompt (Level 1): o Write a direct instruction or query. o Test for desired outputs using tools like llm. 2. Add Reusability (Level 2): o Define static variables and instructions. o Save the prompt in a structured format like XML for future use. 3. Incorporate Examples (Level 3): o Add example outputs to guide the LLM. o Test the prompt for consistency across different inputs. 4. Scale with Dynamic Variables (Level 4): o Integrate dynamic elements into your prompt. o Automate updates for scalability in applications.
@shijimasorce
@shijimasorce Ай бұрын
You are one of the few KZbinrs that I can't just listen to. I have to actually watch it. Your content is so data rich! Love the work!
@agent_mo1922
@agent_mo1922 2 ай бұрын
Gold! Gold! I’ve learned so much about prompt engineering from this video. I’m almost finished using this method to build a legal assistant-with LPC/SQE or BPTC qualifications and post-qualification experience (PQE) level intelligence-to draft service contracts and negotiate terms with my clients via email.
@uscg_vet5681
@uscg_vet5681 2 ай бұрын
I can't believe I only just now found your channel. Uggh. I have so much catching up to do watching your videos.
@tomwawer5714
@tomwawer5714 2 ай бұрын
Great content thanks! I use fabric as my prompt factory and I am inspired to test xml vs. md time and efficiency
@MrLyonliang
@MrLyonliang 2 ай бұрын
after watching your much much valuable video, I'm really excited and inspired by your sentence: "The prompt is the new fundamental unit of knowledge work". thank you.
@tuaitituaiti1565
@tuaitituaiti1565 Ай бұрын
+1 & Team
@reaffirmation
@reaffirmation Ай бұрын
Just created a 500 line xml prompt for a project. Mostly using llm to create it based on a working example of what I wanted it to accomplish. Has security, optimization, examples, data definitions, tables of contents, instructions, search definition sections. Works great! 💪
@RedCloudServices
@RedCloudServices 13 күн бұрын
2025 is the year of structured output - I have been testing Pydantic and especially Pydantic AI to ensure improved outputs - thanks for your channel
@curiouslycory
@curiouslycory Ай бұрын
I've been using and experimenting with LLMs a lot over the last couple years and I still learned a lot of great tips from this video. Thanks Dan! LLMs are pretty good at following prompts written in markdown, but XML-esqe format does seem to be more consistent for models like qwen and the other local models I tested.
@inponderland
@inponderland 2 ай бұрын
This topic is fascinating. I have so many questions. - If you see an output 10+ times as expected, is it reasonable to assume it will always function perfectly with proper inputs? - Is the temperature on these models usually set to zero for maximum consistency? - If you raise the temp for some reason, would that introduce more of a need for unit testing? - Would you choose to unit test with LLMs as well? I’m going to lie down now... Thanks for the inspirational and informative content.
@indydevdan
@indydevdan 2 ай бұрын
My thoughts: - No such thing as 'always' with LLMs BUT the larger your dataset (100+) the more confident you can be. 10+ is a good signal. 100+ is good data backed signal. - Yes typically lower is better for instruction following - Yes - Totally, the live benchmarking is a good middle ground between 'vibe tests' and hardcore benchmarking. If you're going to prod unit tests / benchmarks are a must.
@inponderland
@inponderland Ай бұрын
@@indydevdan Thank you for taking the time to respond! This continues to fascinate me. Best of luck in your continued YT and AI journey
@МихаилПономарев-с6с
@МихаилПономарев-с6с 2 ай бұрын
suggest adding "ell" to your workflow In docs they use python f-strings to manage prompts as functions. You can replace f-strings with your xml snippets. It gives you a lot of benefits and full control over prompt engineering. One more suggestion: think of YML instead of XML it gives you clearer view and editing experience. Multiple files support inside single yml file as well. after you can simply convert : yml -> xml -> txt -> string inside 'ell' function ultimate combination
@KajornvutOunjai
@KajornvutOunjai 2 ай бұрын
You are amazing I think you go beyond most people I know in the industry
@dreamineering
@dreamineering 2 ай бұрын
Thanks for your efforts to spread insightful best practices
@MinaEllis-XXAI
@MinaEllis-XXAI 2 ай бұрын
I am forever grateful for your sharing. This is awesome and will definitely make an epic difference to my workflow
@terminally_lazy
@terminally_lazy 2 ай бұрын
top notch, per usual! Keep up the good work!
@ericcarlson947
@ericcarlson947 2 ай бұрын
Fantastic tutorial. Leveled up! 🎉
@spanda8107
@spanda8107 2 ай бұрын
I loved the experimentation and the practicality. Will wait for more.
@arekkusub6877
@arekkusub6877 Ай бұрын
Really useful, I almost got there on my own by experimenting with a sort of personal CV generation tool based on "historical" project data and requirements from projects I want to apply to. I definitely like the idea of using XML, so far I've been using JSON but XML might be better choice to structure task as you rightfully argumented. The only thing I'm not sure are that quite simple examples. I think LLMs understand well, when you write once that you expect certain structure, but several times might wire them better towards the expected outcome...
@MM-24
@MM-24 2 ай бұрын
I love the presentation and the thought process behind these videos. Like the idea of leveraging prompts and not relying on abstractions What would you use to implement RAG?
@stefanosantini9039
@stefanosantini9039 2 ай бұрын
Great video and vert well structured presentation ! Thanks for sharing. Can I ask, if make sense, to do a video with additional hints for situations where we need prompt for different agents in a multi agent sequence ? Any considerations on how to evolve this logic if we have to run multiple prompts ?
@maxreuv
@maxreuv 2 ай бұрын
Practical and exceptionally useful. Thank you!
@kevinmolina6692
@kevinmolina6692 2 ай бұрын
thank you! all the great things to you!
@ameerbadri
@ameerbadri 2 ай бұрын
Hi Dan, Great content and the level1-4 prompting is very informative. Have you found level3/4 prompting approach to reduce LLM hallucinations?
@YaronBeen
@YaronBeen 2 ай бұрын
Hi Dan, Really enjoy your content, thank you. Two questions: 1. What are your thoughts about prompt expandars and the Anthropic prompt generator? 2. I've read some research papers that undermine the importance of the quality of the prompt. Especially when it comes to models with reasoning capabilities. Those shifted my perspective about the importance of promprt engineering. I have this assumption that the models are going to be smart enough to work things out with a zero shot prompt and many iterations of feedback. But, im curios to hear your thoughts. Thanks again for contributing and sharing your knowledge
@indydevdan
@indydevdan 2 ай бұрын
YW - thank you! 1. Prompts running on prompts (expansion & generation) is a big trend coming that few are using (metaprompting). We'll cover this soon. 2. Yes and No. Hard problems will always be hard no matter how smart the person or model. I have a whole list of problems that GPT-6, claude 10 and o5 will 100% fail. Why? Because at some point raw intelligence is not enough, you need large context, systems, mass collaboration, iterations, and wait for it... 'taste'.
@YaronBeen
@YaronBeen 2 ай бұрын
@@indydevdan Thanks, appreciate it
@jaysonp9426
@jaysonp9426 2 ай бұрын
"Check out my prompt guide" Anyone else: I roll my eyes IndyDanDev: I tap the thumbnail so fast my thumb goes back in time.
@indydevdan
@indydevdan 2 ай бұрын
💀🙏🚀
@TheAIBlueprint
@TheAIBlueprint 2 ай бұрын
I would love to see some benchmarks with DSPY as the prompting tool for each of these models. From my understanding of how DSPY works, is it optimizes instructions to each LLM based on the prompting pattern that each model has been tested to perform best with. It basically is an engineer-minded python library that brings programmatic instructions back to prompting. It would be awesome to see you run some tests with each of the models optimized with DSPY, to compare outputs...since it's really not fair to test the same prompts with different models, since each has their optimial prompting style i feel.
@Bøølæn
@Bøølæn 2 ай бұрын
Can you do a cursor/vscode setup? You setup looks amazing.
@gambit1357
@gambit1357 2 ай бұрын
IKR!
@jiqoynicholas1280
@jiqoynicholas1280 Ай бұрын
Holy cow man. I'm a cloud architect and only recently been bitten by the AI bug lol. But this first promot example (level 1) is years beyond anything ive explored. Anyone have any other videos or cources to even get to L1? This dude is fantastic!
@tharunbhaskar6795
@tharunbhaskar6795 2 ай бұрын
This is cool. I've been introduced to this new type of prompting with XML. I always wondered JSON is the best choice
@leversofpower
@leversofpower 2 ай бұрын
Doing level 5 now that generates an html snippet inserts into a existing web page. Claude is dynamically generating the html bootstrap 5 responsive interface performing as a data analyst. Dynamic non deterministic ui is fascinating.
@hrmanager6883
@hrmanager6883 2 ай бұрын
Great contribution 👍
@blaudden
@blaudden Ай бұрын
Very very interesting. Thank you!
@MayDay-g4k
@MayDay-g4k Ай бұрын
Until task are easy and I can check them by myself - I'm able to write this little queries also by myself. If task is huge and I cannot check correctness - I cannot trust to the answer. If I cannot trust output of LLM - I have to do task by myself anyway. Prompt engineering is applicable only for chatbots and something like that, which does not imply strict and precise answers and that's means that prompt engineering still not a skill, because it is not measurable.
@TechNews-b7e
@TechNews-b7e 2 ай бұрын
Amazing content. Thank you a lot!
@techfren
@techfren 2 ай бұрын
So good!
@leversofpower
@leversofpower 2 ай бұрын
Level 6 is likely to be non deterministic because it lacks no template just gets data fragments and leans more into an operational role or area an effectiveness. Used more to provide insights and less summarization
@LucianoFiandesio
@LucianoFiandesio 22 күн бұрын
Great video. I was wondering: do you use system prompts at all? As a software dev, I normally craft my prompts with a system prompt (persona, how the code should be structured, best practices, etc.) and a user prompt (what I actually need the LLM to produce). Thanks and keep up the great content!
@DmitryAvramenko
@DmitryAvramenko 2 ай бұрын
One more question: what tool are you using for your onscreen semi-transparent slides you use to present and tool to make the video recording with this square marker that you move on screen?
@DmitryAvramenko
@DmitryAvramenko 2 ай бұрын
Thank you for your videos! Amazing learning. Can you please help understand the requirements on hardware to run LLMs you are running locally ? If I buy currently available mac mini M4 PRO fully loaded to 64GB of memory and max the CPU/GPU cores, is it good enough? Or need to wait for next year's mac mini m4 ultra studio? What setup are you running? Can you do a video on how to run Lama with some models being local and some being run remotely on powerful GPUs
@samson3523
@samson3523 2 ай бұрын
I'm a simple man, I see indydevdan I click like & subscribe
@jksoftware1
@jksoftware1 Ай бұрын
GREAT VIDEO!!! I'm going to share it with my team at the office. Question. I'm having issues with a system prompt. Do these techniques help with those as well. If do will a tool_instructions help with tool execution or am I overthinking it?
@shawnfromportland
@shawnfromportland 2 ай бұрын
10:02 it would be interesting to run conclusive experiments for a) effectiveness of structured prompt versus plain english to achieve the same goals b) actual amount of time it takes the writer to write the structured prompt versus english, as well as time it takes to do average edits. i get that most compsci bros are natively thinking in structure/code anyway so this could be easier for many people, but if a well-written english language prompt can achieve the same results and the nontechnical members of your team can read and edit the prompt just as well, then it's not straightforward that structured/xml prompts are the way to go. i never thought about writing prompts that way in xml but im going to try it now. thus far i've never felt like i haven't been able to get the result i wanted with regular english writing
@aiplaygrounds
@aiplaygrounds 2 ай бұрын
Great value 🎉 thank you 🙏
@srineeshsalur524
@srineeshsalur524 Ай бұрын
hey Dan, so when you are running open ai, sonnet and gemini models are all those models paid, i.e you have api keys stored away in a env file right??
@muradjam
@muradjam Ай бұрын
Excellent tutorial !!! I'm curious about how to display "tokens count" at the bottom right panel of the Cursor app as yours and what's the model name you were using at the beginning of this video ?
@muradjam
@muradjam Ай бұрын
@IndyDevDan
@amoledzeppelin
@amoledzeppelin 22 күн бұрын
Granite3.1-MoE 1B works especially well with such prompts.
@daviddejesus2778
@daviddejesus2778 2 ай бұрын
What extensions are you using for your text editor? I'm assuming VSCode? Nice templates. I just answered my own question. Cursor.
@hartmannsson
@hartmannsson 2 ай бұрын
Awesome stuff as always. What kind of machine do you have?
@QuizmasterLaw
@QuizmasterLaw Ай бұрын
I process natural language, but could use XML instead of plain txt for prompts. Would it make my logically structured prompts more effective? I can understand how using XML instead of txt might make prompting for code more effective. Is that Generally true? I think so, based on this video.
@kuatroka
@kuatroka Ай бұрын
in the end, what I didn't get is how to actually run the level 4 prompt with `llm` library. How do you pass the content variable to it? I get how to pass the prompt saved as a file, but how to pass both, the file with prompt text and the content? Thx
@ew3995
@ew3995 Ай бұрын
your xml is not compliant, there is no root element, would it help to add , or would it make it worse?
@callumarul6322
@callumarul6322 2 ай бұрын
What do you think of the LangGraph framework?
@side-questingz
@side-questingz Ай бұрын
what do you use to tell you the tokens size in the files?
@mrd6869
@mrd6869 2 ай бұрын
Know what would be interesting. Having an AI agent that uses a similar approach coding assistants use, but for prompt building. Have it display the prompt, and make edits inline like cursor does and then test fire in a mock environment. Then take the output and then feed it back into the agent again for refinement......like automate prompt engineering.
@RoulDukeGonzo
@RoulDukeGonzo 2 ай бұрын
DSPy
@SiaBarz
@SiaBarz 2 ай бұрын
Awesome work man, appreciate the content. If you get some time, give some insight how to bring AI power to an existing codebase
@TheAIBlueprint
@TheAIBlueprint 2 ай бұрын
Also, why do you use cursor and not windsurf?
@HitechinformationsIt01
@HitechinformationsIt01 2 ай бұрын
Great content, congratulations! Could you make a GPT to make the procedure even easier?
@emincanp
@emincanp 2 ай бұрын
Is it possible to give micro examples instead of an entire example output? Like examples of certain words to be written in some way instead of the whole output written that way. Or should we just use instruction instead to clarify.
@DanielWeikert
@DanielWeikert 2 ай бұрын
Any good ideas for a free prompting library? Should be free, easy to search through and accessible from the web
@TheSopk
@TheSopk 2 ай бұрын
How do you select multiple words and edit them into 'instructions' at once? I'd like to know all the shortcuts you use. 9:41
@rafael_tg
@rafael_tg 2 ай бұрын
Ctrl + D
@remsee1608
@remsee1608 2 ай бұрын
Thoughts on new Claude vs. old Claude? Seems like new Claude is kinda dumb in some ways but seems better in other ways
@RuneX_ai
@RuneX_ai Ай бұрын
Fantastic work ! Why don’t you use voice? Takes to long?
@unknmanserbia2642
@unknmanserbia2642 Ай бұрын
We need this for Node js
@RuneX_ai
@RuneX_ai Ай бұрын
You are Einstein of promoting
@OPedro_Marinho
@OPedro_Marinho 2 ай бұрын
Thanks for the video Bro, how can i learn with you?
@HertzfeltLabs
@HertzfeltLabs 2 ай бұрын
Brother did you see the new Model Context Protocol (MCP)?
@indydevdan
@indydevdan 2 ай бұрын
I did - video in the queue - still working through value prop.
@elig2165
@elig2165 2 ай бұрын
Level 5 unit testing?
@callumarul6322
@callumarul6322 2 ай бұрын
9:45 to 9:52 how did you do that?
@parkerrex
@parkerrex 13 күн бұрын
multi-cursor editing + vim motions
@NLPprompter
@NLPprompter 2 ай бұрын
Oh man i love this kind of content keep it comin mate I'll watch it all.... 👍⭐⭐⭐⭐⭐(6/5)🌟 btw can you make video about windsurf too?
@roberth8737
@roberth8737 2 ай бұрын
🐐
@2034-SWE
@2034-SWE 2 ай бұрын
Interesting
@RoulDukeGonzo
@RoulDukeGonzo 2 ай бұрын
Honestly... I don't get it. Summarise this, examples for that, prompt library... How do I use this to build better systems?
@ozuromo
@ozuromo 2 ай бұрын
Amazing content as aways. PS: you say Boolean wrong.
@indydevdan
@indydevdan 2 ай бұрын
facts
@KrisTerziev
@KrisTerziev 2 ай бұрын
"Pompting is super important" 5 minutes later: Procees to show haw llms dont follow instructions
@mahamudmunna5000
@mahamudmunna5000 Ай бұрын
yo... what is that typing speed darn boi
@efexzium
@efexzium Ай бұрын
Can someome convince me why prompt engineering is engineering at all?
@jaysonp9426
@jaysonp9426 2 ай бұрын
Have I been saying Boolean wrong my whole life...
@indydevdan
@indydevdan 2 ай бұрын
No it's me.
@jaysonp9426
@jaysonp9426 2 ай бұрын
@indydevdan haha ok good
@TheAIBlueprint
@TheAIBlueprint 2 ай бұрын
I wouldn't say Prompt Engineering isn't a real "skill", kzbin.info/www/bejne/q5vRfX2oqpd_f9Usi=GrRivtBfuxgScSDk&t=173 but i would say Prompt Engineering isn't a skill that will be around for long.... especially as LLMs become better and better, the need for very specific prompts changes, and each model has been shown to perform better with different prompt patterns, and sometimes updating to a newer model can break your prompts... For example in o1 trying to use Chain Of Thought will actually return worse output, apparently because CoT is already cooked into the system...
@AntonioRonde
@AntonioRonde 2 ай бұрын
You need a better prompt for your scripts. The pacing of this video is off, in the beginning it feels too slow and on level 4 it feels overhasty. The arc of suspense is weak.
@bear_jaws
@bear_jaws 2 ай бұрын
Please please plase, just fix your mic... Love your videos but the thumping sound from your typing is just obnoxious, especially since it costs $20 to fix.
@RuneX_ai
@RuneX_ai Ай бұрын
You are Einstein of promoting
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 261 М.
"Идеальное" преступление
0:39
Кик Брейнс
Рет қаралды 1,4 МЛН
요즘유행 찍는법
0:34
오마이비키 OMV
Рет қаралды 12 МЛН
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
How to Build Effective AI Agents in Pure Python - Beginner Course
46:44
How to Master DeepSeek R1 Prompt Engineering
14:24
Mark Kashef
Рет қаралды 12 М.
Pixel 7 и 7 Pro с Face ID - лучше iPhone 14 Pro!
21:12
Rozetked
Рет қаралды 457 М.
DID YOU NOTICE ANY LAPSES IN THE VIDEO or NOT? / MARGO_FLURY
0:34
MARGO FLURY | Маргарита Дьяченкова
Рет қаралды 12 МЛН