[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![LinkedIn](https://img.shields.io/badge/LinkedIn-Connect-blue)](https://www.linkedin.com/in/nir-diamant-759323134/) [![Twitter](https://img.shields.io/twitter/follow/NirDiamantAI?label=Follow%20@NirDiamantAI&style=social)](https://twitter.com/NirDiamantAI) [![Discord](https://img.shields.io/badge/Discord-Join%20our%20community-7289da?style=flat-square&logo=discord&logoColor=white)](https://discord.gg/cA6Aa4uyDX) # Prompt Engineering Techniques: Comprehensive Repository for Development and Implementation ๐Ÿ–‹๏ธ Welcome to one of the most extensive and dynamic collections of Prompt Engineering tutorials and implementations available today. This repository serves as a comprehensive resource for learning, building, and sharing prompt engineering techniques, ranging from basic concepts to advanced strategies for leveraging large language models. > **22 hands-on tutorials** covering everything from basic prompt templates to advanced techniques like chain-of-thought, self-consistency, and tree-of-thought prompting.

๐ŸŽ“ From prompts to production

**[Prompt to Production](https://europe-west1-rag-techniques-views-tracker.cloudfunctions.net/rag-techniques-tracker?notebook=prompt-engineering--readme&click=course-free-module-cta&target=https%3A%2F%2Fwww.diamant-ai.com%2Fcourses%3Futm_source%3Dgithub%26utm_medium%3Dreadme%26utm_campaign%3Dprompt-engineering&retarget=0&text=course-free-module-cta)** - my full course on building software with AI the way professionals do: the methods and paradigms behind reliable, efficient, modular production systems, taught systematically. 17 modules, each pairing a video lecture with a hands-on lab, from your first structured prompt to a working production system. ### ๐ŸŽ Try a full module, free
๐ŸŽฌ
7-minute
video lecture
๐Ÿ› ๏ธ
Hands-on
tutorial
๐Ÿค–
AI assistant
inside Claude Code
One `npm install` adds the module's AI assistant to your Claude Code, and it guides you through the tutorial as you build. Claim your free module
## ๐ŸŽฏ Sponsors
Coderabbit
## ๐Ÿ“ซ Stay Updated!
๐Ÿš€
Cutting-edge
Updates
๐Ÿ’ก
Expert
Insights
๐ŸŽฏ
Top 0.1%
Content
[![Subscribe to DiamantAI Newsletter](images/subscribe-button.svg)](https://newsletter.diamant-ai.com/?r=336pe4&utm_campaign=pub-share-checklist) *Join over 50,000 AI enthusiasts getting unique cutting-edge insights and free tutorials!* ***Plus, subscribers get exclusive early access and special discounts to our upcoming RAG Techniques course!***
[![DiamantAI's newsletter](images/substack_image.png)](https://newsletter.diamant-ai.com/?r=336pe4&utm_campaign=pub-share-checklist) ## Introduction Prompt engineering is at the forefront of artificial intelligence, revolutionizing the way we interact with and leverage AI technologies. This repository is designed to guide you through the development journey, from basic prompt structures to advanced, cutting-edge techniques. Our goal is to provide a valuable resource for everyone - from beginners taking their first steps in AI to seasoned practitioners pushing the boundaries of what's possible. By offering a range of examples from foundational to complex, we aim to facilitate learning, experimentation, and innovation in the rapidly evolving field of prompt engineering. Furthermore, this repository serves as a platform for showcasing innovative prompt engineering techniques. Whether you've developed a novel approach or found an innovative application for existing techniques, we encourage you to share your work with the community. ## ๐Ÿ“– The book version of this repo **[Prompt Engineering from Zero to Hero](https://europe-west1-rag-techniques-views-tracker.cloudfunctions.net/rag-techniques-tracker?notebook=prompt-engineering--readme&click=book-buy-pe-gumroad&target=https%3A%2F%2Fnirdiamant.gumroad.com%2Fl%2Fmtxrfk&retarget=0&text=book-buy-pe-gumroad)** - all 22 techniques from this repo, fully explained with step-by-step breakdowns and hands-on exercises. [Amazon Kindle - $9.99](https://europe-west1-rag-techniques-views-tracker.cloudfunctions.net/rag-techniques-tracker?notebook=prompt-engineering--readme&click=book-buy-pe-kindle&target=https%3A%2F%2Fwww.amazon.com%2Fdp%2FB0DZ85RPB5&retarget=0&text=book-buy-pe-kindle) ยท [Paperback](https://europe-west1-rag-techniques-views-tracker.cloudfunctions.net/rag-techniques-tracker?notebook=prompt-engineering--readme&click=book-buy-pe-paper&target=https%3A%2F%2Fwww.amazon.com%2Fdp%2FB0DZ9RVKMJ&retarget=0&text=book-buy-pe-paper) ยท [Gumroad PDF](https://europe-west1-rag-techniques-views-tracker.cloudfunctions.net/rag-techniques-tracker?notebook=prompt-engineering--readme&click=book-buy-pe-gumroad&target=https%3A%2F%2Fnirdiamant.gumroad.com%2Fl%2Fmtxrfk&retarget=0&text=book-buy-pe-gumroad) ## Related Projects ๐Ÿ” **[RAG Techniques](https://github.com/NirDiamant/RAG_Techniques)** - 40+ notebooks on retrieval-augmented generation. ๐Ÿค– **[GenAI Agents](https://github.com/NirDiamant/GenAI_Agents)** - implementations and tutorials for building AI agent systems. ๐Ÿš€ **[Agents Towards Production](https://github.com/NirDiamant/agents-towards-production)** - code-first tutorials for shipping production-grade agents. ๐Ÿง  **[Agent Memory Techniques](https://github.com/NirDiamant/Agent_Memory_Techniques)** - 30 notebooks on agent memory: vector stores, graphs, Mem0, Zep. ## Join the community Contributions make this better - propose ideas, share techniques, or give feedback via **[CONTRIBUTING.md](https://github.com/NirDiamant/Prompt_Engineering/blob/main/CONTRIBUTING.md)**. **[r/EducationalAI](https://www.reddit.com/r/EducationalAI/)** ยท **[Discord](https://discord.gg/cA6Aa4uyDX)** ยท **[LinkedIn](https://www.linkedin.com/in/nir-diamant-759323134/)** ## Key Features - ๐ŸŽ“ Learn prompt engineering techniques from beginner to advanced levels - ๐Ÿง  Explore a wide range of prompt structures and applications - ๐Ÿ“š Step-by-step tutorials and comprehensive documentation - ๐Ÿ› ๏ธ Practical, ready-to-use prompt implementations - ๐ŸŒŸ Regular updates with the latest advancements in prompt engineering - ๐Ÿค Share your own prompt engineering creations with the community ## Prompt Engineering Techniques Explore our extensive list of prompt engineering techniques, ranging from basic to advanced: | # | Category | Technique | Description | |---|----------|-----------|-------------| | 1 | ๐ŸŽ“ **Fundamental Concepts** | [Introduction to Prompt Engineering](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/intro-prompt-engineering-lesson.ipynb) | Comprehensive introduction to fundamental concepts of prompt engineering | | 2 | ๐ŸŽ“ **Fundamental Concepts** | [Basic Prompt Structures](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/basic-prompt-structures.ipynb) | Exploration of single-turn and multi-turn prompt structures | | 3 | ๐ŸŽ“ **Fundamental Concepts** | [Prompt Templates and Variables](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/prompt-templates-variables-jinja2.ipynb) | Creating and using prompt templates with variables | | 4 | ๐Ÿ”ง **Core Techniques** | [Zero-Shot Prompting](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/zero-shot-prompting.ipynb) | Performing tasks without specific examples | | 5 | ๐Ÿ”ง **Core Techniques** | [Few-Shot Learning](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/few-shot-learning.ipynb) | Learning from a small number of examples | | 6 | ๐Ÿ”ง **Core Techniques** | [Chain of Thought (CoT)](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/cot-prompting.ipynb) | Step-by-step reasoning processes | | 7 | ๐ŸŽฏ **Advanced Strategies** | [Self-Consistency](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/self-consistency.ipynb) | Multiple reasoning paths and result aggregation | | 8 | ๐ŸŽฏ **Advanced Strategies** | [Constrained Generation](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/constrained-guided-generation.ipynb) | Setting up output constraints | | 9 | ๐ŸŽฏ **Advanced Strategies** | [Role Prompting](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/role-prompting.ipynb) | Assigning specific roles to AI models | | 10 | ๐Ÿš€ **Advanced Implementations** | [Task Decomposition](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/task-decomposition-prompts.ipynb) | Breaking down complex tasks | | 11 | ๐Ÿš€ **Advanced Implementations** | [Prompt Chaining](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/prompt-chaining-sequencing.ipynb) | Connecting multiple prompts | | 12 | ๐Ÿš€ **Advanced Implementations** | [Instruction Engineering](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/instruction-engineering-notebook.ipynb) | Crafting clear instructions | | 13 | โšก **Optimization** | [Prompt Optimization](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/prompt-optimization-techniques.ipynb) | A/B testing and refinement | | 14 | โšก **Optimization** | [Handling Ambiguity](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/ambiguity-clarity.ipynb) | Resolving ambiguous prompts | | 15 | โšก **Optimization** | [Length Management](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/prompt-length-complexity-management.ipynb) | Managing prompt complexity | | 16 | ๐Ÿ› ๏ธ **Specialized Applications** | [Negative Prompting](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/negative-prompting.ipynb) | Avoiding undesired outputs | | 17 | ๐Ÿ› ๏ธ **Specialized Applications** | [Prompt Formatting](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/prompt-formatting-structure.ipynb) | Various prompt formats | | 18 | ๐Ÿ› ๏ธ **Specialized Applications** | [Task-Specific Prompts](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/specific-task-prompts.ipynb) | Prompts for specific tasks | | 19 | ๐ŸŒ **Advanced Applications** | [Multilingual Prompting](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/multilingual-prompting.ipynb) | Cross-lingual techniques | | 20 | ๐ŸŒ **Advanced Applications** | [Ethical Considerations](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/ethical-prompt-engineering.ipynb) | Bias avoidance and inclusivity | | 21 | ๐ŸŒ **Advanced Applications** | [Prompt Security](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/prompt-security-and-safety.ipynb) | Preventing injections | | 22 | ๐ŸŒ **Advanced Applications** | [Effectiveness Evaluation](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/evaluating-prompt-effectiveness.ipynb) | Evaluating prompt performance | ### ๐ŸŒฑ Fundamental Concepts 1. **[Introduction to Prompt Engineering](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/intro-prompt-engineering-lesson.ipynb)** #### Overview ๐Ÿ”Ž A comprehensive introduction to the fundamental concepts of prompt engineering in the context of AI and language models. #### Implementation ๐Ÿ› ๏ธ Combines theoretical explanations with practical demonstrations, covering basic concepts, structured prompts, comparative analysis, and problem-solving applications. 2. **[Basic Prompt Structures](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/basic-prompt-structures.ipynb)** #### Overview ๐Ÿ”Ž Explores two fundamental types of prompt structures: single-turn prompts and multi-turn prompts (conversations). #### Implementation ๐Ÿ› ๏ธ Uses OpenAI's GPT model and LangChain to demonstrate single-turn and multi-turn prompts, prompt templates, and conversation chains. 3. **[Prompt Templates and Variables](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/prompt-templates-variables-jinja2.ipynb)** #### Overview ๐Ÿ”Ž Introduces creating and using prompt templates with variables, focusing on Python and the Jinja2 templating engine. #### Implementation ๐Ÿ› ๏ธ Covers template creation, variable insertion, conditional content, list processing, and integration with the OpenAI API. ### ๐Ÿ”ง Core Techniques 4. **[Zero-Shot Prompting](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/zero-shot-prompting.ipynb)** #### Overview ๐Ÿ”Ž Explores zero-shot prompting, allowing language models to perform tasks without specific examples or prior training. #### Implementation ๐Ÿ› ๏ธ Demonstrates direct task specification, role-based prompting, format specification, and multi-step reasoning using OpenAI and LangChain. 5. **[Few-Shot Learning and In-Context Learning](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/few-shot-learning.ipynb)** #### Overview ๐Ÿ”Ž Covers Few-Shot Learning and In-Context Learning techniques using OpenAI's GPT models and the LangChain library. #### Implementation ๐Ÿ› ๏ธ Implements basic and advanced few-shot learning, in-context learning, and best practices for example selection and evaluation. 6. **[Chain of Thought (CoT) Prompting](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/cot-prompting.ipynb)** #### Overview ๐Ÿ”Ž Introduces Chain of Thought (CoT) prompting, encouraging AI models to break down complex problems into step-by-step reasoning processes. #### Implementation ๐Ÿ› ๏ธ Covers basic and advanced CoT techniques, applying them to various problem-solving scenarios and comparing results with standard prompts. ### ๐Ÿ” Advanced Strategies 7. **[Self-Consistency and Multiple Paths of Reasoning](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/self-consistency.ipynb)** #### Overview ๐Ÿ”Ž Explores techniques for generating diverse reasoning paths and aggregating results to improve AI-generated answers. #### Implementation ๐Ÿ› ๏ธ Demonstrates designing diverse reasoning prompts, generating multiple responses, implementing aggregation methods, and applying self-consistency checks. 8. **[Constrained and Guided Generation](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/constrained-guided-generation.ipynb)** #### Overview ๐Ÿ”Ž Focuses on techniques to set up constraints for model outputs and implement rule-based generation. #### Implementation ๐Ÿ› ๏ธ Uses LangChain's PromptTemplate for structured prompts, implements constraints, and explores rule-based generation techniques. 9. **[Role Prompting](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/role-prompting.ipynb)** #### Overview ๐Ÿ”Ž Explores assigning specific roles to AI models and crafting effective role descriptions. #### Implementation ๐Ÿ› ๏ธ Demonstrates creating role-based prompts, assigning roles to AI models, and refining role descriptions for various scenarios. ### ๐Ÿš€ Advanced Implementations 10. **[Task Decomposition in Prompts](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/task-decomposition-prompts.ipynb)** #### Overview ๐Ÿ”Ž Explores techniques for breaking down complex tasks and chaining subtasks in prompts. #### Implementation ๐Ÿ› ๏ธ Covers problem analysis, subtask definition, targeted prompt engineering, sequential execution, and result synthesis. 11. **[Prompt Chaining and Sequencing](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/prompt-chaining-sequencing.ipynb)** #### Overview ๐Ÿ”Ž Demonstrates how to connect multiple prompts and build logical flows for complex AI-driven tasks. #### Implementation ๐Ÿ› ๏ธ Explores basic prompt chaining, sequential prompting, dynamic prompt generation, and error handling within prompt chains. 12. **[Instruction Engineering](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/instruction-engineering-notebook.ipynb)** #### Overview ๐Ÿ”Ž Focuses on crafting clear and effective instructions for language models, balancing specificity and generality. #### Implementation ๐Ÿ› ๏ธ Covers creating and refining instructions, experimenting with different structures, and implementing iterative improvement based on model responses. ### ๐ŸŽจ Optimization and Refinement 13. **[Prompt Optimization Techniques](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/prompt-optimization-techniques.ipynb)** #### Overview ๐Ÿ”Ž Explores advanced techniques for optimizing prompts, focusing on A/B testing and iterative refinement. #### Implementation ๐Ÿ› ๏ธ Demonstrates A/B testing of prompts, iterative refinement processes, and performance evaluation using relevant metrics. 14. **[Handling Ambiguity and Improving Clarity](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/ambiguity-clarity.ipynb)** #### Overview ๐Ÿ”Ž Focuses on identifying and resolving ambiguous prompts and techniques for writing clearer prompts. #### Implementation ๐Ÿ› ๏ธ Covers analyzing ambiguous prompts, implementing strategies to resolve ambiguity, and exploring techniques for writing clearer prompts. 15. **[Prompt Length and Complexity Management](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/prompt-length-complexity-management.ipynb)** #### Overview ๐Ÿ”Ž Explores techniques for managing prompt length and complexity when working with large language models. #### Implementation ๐Ÿ› ๏ธ Demonstrates techniques for balancing detail and conciseness, and strategies for handling long contexts including chunking, summarization, and iterative processing. ### ๐Ÿ› ๏ธ Specialized Applications 16. **[Negative Prompting and Avoiding Undesired Outputs](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/negative-prompting.ipynb)** #### Overview ๐Ÿ”Ž Explores negative prompting and techniques for avoiding undesired outputs from large language models. #### Implementation ๐Ÿ› ๏ธ Covers basic negative examples, explicit exclusions, constraint implementation using LangChain, and methods for evaluating and refining negative prompts. 17. **[Prompt Formatting and Structure](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/prompt-formatting-structure.ipynb)** #### Overview ๐Ÿ”Ž Explores various prompt formats and structural elements, demonstrating their impact on AI model responses. #### Implementation ๐Ÿ› ๏ธ Demonstrates creating various prompt formats, incorporating structural elements, and comparing responses from different prompt structures. 18. **[Prompts for Specific Tasks](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/specific-task-prompts.ipynb)** #### Overview ๐Ÿ”Ž Explores the creation and use of prompts for specific tasks: text summarization, question-answering, code generation, and creative writing. #### Implementation ๐Ÿ› ๏ธ Covers designing task-specific prompt templates, implementing them using LangChain, executing with sample inputs, and analyzing outputs for each task type. ### ๐ŸŒ Advanced Applications 19. **[Multilingual and Cross-lingual Prompting](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/multilingual-prompting.ipynb)** #### Overview ๐Ÿ”Ž Explores techniques for designing prompts that work effectively across multiple languages and for language translation tasks. #### Implementation ๐Ÿ› ๏ธ Covers creating multilingual prompts, implementing language detection and adaptation, designing cross-lingual translation prompts, and handling various writing systems and scripts. 20. **[Ethical Considerations in Prompt Engineering](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/ethical-prompt-engineering.ipynb)** #### Overview ๐Ÿ”Ž Explores the ethical dimensions of prompt engineering, focusing on avoiding biases and creating inclusive and fair prompts. #### Implementation ๐Ÿ› ๏ธ Covers identifying biases in prompts, implementing strategies to create inclusive prompts, and methods to evaluate and improve the ethical quality of AI outputs. 21. **[Prompt Security and Safety](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/prompt-security-and-safety.ipynb)** #### Overview ๐Ÿ”Ž Focuses on preventing prompt injections and implementing content filters in prompts for safe and secure AI applications. #### Implementation ๐Ÿ› ๏ธ Covers techniques for prompt injection prevention, content filtering implementation, and testing the effectiveness of security and safety measures. 22. **[Evaluating Prompt Effectiveness](https://github.com/NirDiamant/Prompt_Engineering/blob/main/all_prompt_engineering_techniques/evaluating-prompt-effectiveness.ipynb)** #### Overview ๐Ÿ”Ž Explores methods and techniques for evaluating the effectiveness of prompts in AI language models. #### Implementation ๐Ÿ› ๏ธ Covers setting up evaluation metrics, implementing manual and automated evaluation techniques, and providing practical examples using OpenAI and LangChain. ## Getting Started To begin exploring and implementing prompt engineering techniques: 1. Clone this repository: ``` git clone https://github.com/NirDiamant/Prompt_Engineering.git ``` 2. Navigate to the technique you're interested in: ``` cd all_prompt_engineering_techniques ``` 3. Follow the detailed implementation guide in each technique's notebook. ## ๐Ÿ“š Recommended reading *This list contains Amazon affiliate links. As an Amazon Associate I earn from qualifying purchases. Every book below is one I've read and genuinely recommend to engineers working in this space. The companion book to this repo is featured separately at the top of this README.* - [Build a Large Language Model (From Scratch)](https://www.amazon.com/dp/1633437167?tag=diamantai-pe-20) by Sebastian Raschka. Build a GPT-style model end to end in PyTorch. - [AI Engineering: Building Applications with Foundation Models](https://www.amazon.com/dp/1098166302?tag=diamantai-pe-20) by Chip Huyen. Canonical reference for productionizing foundation-model apps. - [Hands-On Large Language Models](https://www.amazon.com/dp/1098150961?tag=diamantai-pe-20) by Jay Alammar and Maarten Grootendorst. Visual, practical LLM walkthroughs. - [Natural Language Processing with Transformers](https://www.amazon.com/dp/1098136799?tag=diamantai-pe-20) by Lewis Tunstall, Leandro von Werra, and Thomas Wolf. From the Hugging Face team. - [Designing Machine Learning Systems](https://www.amazon.com/dp/1098107969?tag=diamantai-pe-20) by Chip Huyen. ML systems in production, still the standard reference. --- ## ๐Ÿ“š More from the same author **[RAG Made Simple](https://europe-west1-rag-techniques-views-tracker.cloudfunctions.net/rag-techniques-tracker?notebook=prompt-engineering--readme&click=book-buy-gumroad-rag-cta&target=https%3A%2F%2Fdiamant-ai.com%2Frag-made-simple%3Fcode%3DRAGKING&retarget=0&text=book-buy-gumroad-rag-cta)** - the 400-page visual guide to RAG, the retrieval layer behind advanced agents. 33% off with code RAGKING. *Run a course, newsletter, or dev community? You can [earn 25% recommending the books](https://europe-west1-rag-techniques-views-tracker.cloudfunctions.net/rag-techniques-tracker?notebook=prompt-engineering--readme&click=affiliate-signup&target=https%3A%2F%2Fnirdiamant.gumroad.com%2Faffiliates&retarget=0&text=affiliate-signup) to your audience.* ## Contributing We welcome contributions from the community! If you have a new technique or improvement to suggest: 1. Fork the repository 2. Create your feature branch: `git checkout -b feature/AmazingFeature` 3. Commit your changes: `git commit -m 'Add some AmazingFeature'` 4. Push to the branch: `git push origin feature/AmazingFeature` 5. Open a pull request ## License This project is licensed under a custom non-commercial license - see the [LICENSE](LICENSE) file for details. --- โญ๏ธ If you find this repository helpful, please consider giving it a star! Keywords: Prompt Engineering, AI, Machine Learning, Natural Language Processing, LLM, Language Models, NLP, Conversational AI, Zero-Shot Learning, Few-Shot Learning, Chain of Thought ![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=main-readme)