404
+ +Page not found :(
+The requested page could not be found.
+diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml deleted file mode 100644 index 7719325..0000000 --- a/.github/workflows/hugo.yml +++ /dev/null @@ -1,76 +0,0 @@ -# Sample workflow for building and deploying a Hugo site to GitHub Pages -name: Deploy Hugo site to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "pages" - cancel-in-progress: false - -# Default to bash -defaults: - run: - shell: bash - -jobs: - # Build job - build: - runs-on: ubuntu-latest - env: - HUGO_VERSION: 0.124.1 - steps: - - name: Install Hugo CLI - run: | - wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ - && sudo dpkg -i ${{ runner.temp }}/hugo.deb - - name: Install Dart Sass - run: sudo snap install dart-sass - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: recursive - - name: Setup Pages - id: pages - uses: actions/configure-pages@v5 - - name: Install Node.js dependencies - run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - - name: Build with Hugo - env: - # For maximum backward compatibility with Hugo modules - HUGO_ENVIRONMENT: production - HUGO_ENV: production - run: | - cd web - hugo \ - --minify \ - --baseURL "${{ steps.pages.outputs.base_url }}/" - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: ./public - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/web/404.html b/web/404.html new file mode 100644 index 0000000..c472b4e --- /dev/null +++ b/web/404.html @@ -0,0 +1,24 @@ +--- +layout: default +--- + + + +
Page not found :(
+The requested page could not be found.
+Page not found :(
+The requested page could not be found.
+Here’s a list of all the pages on this site:
+ + + + + + + + + +Welcome to the Prompt Engineering Hands-on Lab! This guide is designed to assist you in understanding and utilizing Microsoft’s AI companion, Copilot, in a practical and engaging manner.
+ +Throughout this lab, we will delve into the world of AI-powered chat, explore various types of prompts, and learn how to guide an AI language model to generate desired content. The exercises are designed to be hands-on, allowing you to learn by doing and apply your newfound skills in real-time.
+ +Our goal is to equip you with the skills and understanding to effectively use AI tools like Copilot in your own projects, whether they be for business, education, or personal use.
+ +In the first exercise, you’ll get to know how Copilot works by using simple prompts. In the second exercise, you’ll use Copilot to create different things for a made-up space startup. This will involve generating a company name, mission statement, logo, and even a business plan, all using different prompting techniques.
+ +By the end of this lab, you will have a comprehensive understanding of how to interact with and guide AI language models, and how to use them as a powerful tool in your own projects.
+ +Now, let’s dive in and get started with our first exercise!
+ +For this exercise we are going to use Microsoft Copilot, your everyday AI companion, providing AI-powered chat for the web. Open it at https://www.bing.com/chat and configure the conversation style to “More creative”, because today we are going to have an ideation session and, as Linus Pauling said once, the best way to have a good idea is to have lots of ideas.
+ + + +Write the following prompt in the “Ask me anything…” textbox:
+ +The space is
+ +This is the most basic prompt and is called a seed text prompt. A seed text prompt is a simple, open-ended statement or question that serves as a starting point for AI-generated content.
+ +What was the output that Copilot generated? Depending on the day, it can generate a long dissertation about the vastness and complexity of space. It is just filling the emptiness…
+ +If we want a specific answer, we need to ask a specific question. The more detailed our question, the better the answer.
+ +Before starting with the new prompt, click on New topic button, this will clear the context to start from scratch.
+ + + +If you write this more explicit prompt:
+ +Complete this sentence:
+
+The space is
+
+
+You will get a shorter more concise answer.
+ +Next, we have conditional prompts. You use these to tell the AI to create content based on certain rules or conditions. Try this one:
+ +Write a story about a new company building a spaceship to fly to Mars, founded by an astronaut, a few former NASA and ESA engineers, and an awarded cook.
+
+
+In multiple choice prompts you present the AI with several options from which it must choose or recommend the most appropriate one based on the context or criteria provided.
+ +What do we need to fly to Mars?
+
+A) a giant Mars chocolate bar
+
+B) a DeLorean
+
+C) a spaceship
+
+D) a private jet
+
+
+The previous examples are simple Zero-shot prompts. In these prompts we do not provide any example, we directly instruct the model to answer a question and we rely on the training data to obtain the answer. (Keep in mind that nowadays Bing chat has access to the internet, and it is also using some other techniques like meta-prompting, function calling, content filtering and RAG, so this is not completely true, but for this exercise we will just ignore this).
+ +Classify the text into neutral, negative or positive.
+
+Text: I think the space is cool.
+
+Sentiment:
+
+
+This should give you a positive sentiment, but you can challenge the LLM to fix its answer if you feel it is not the right one:
+ +Are you sure? What if the word cool was factual in this sentence?
+
+
+Now Copilot must have given this a second thought and understood the nuances.
+ +++ +Great job on completing the first exercise! Remember, there’s no ‘one-size-fits-all’ approach to using AI. Feel free to experiment with different types of prompts to see what results you get. The more you experiment, the more you’ll understand how to guide Copilot effectively. If you need some more examples for each type of prompt, check the example guide at the end of this document.
+
++ +As we dive into the second exercise, keep in mind that this is your opportunity to get creative and experiment. Try different prompt techniques, adjust your instructions, and see how Copilot responds. Remember, there’s no right or wrong way to do this – the goal is to learn and have fun!
+
You may have noticed by now that Copilot can give you up to 30 answers in a session:
+ + + +This means that after iterating 30 times you will need to start again from scratch. So, before starting this second exercise, click on the “New topic” button to start a new session.
+ +In this exercise, you will use Copilot to generate various elements of your own space startup, such as the name, the mission statement, the logo, and the business plan. You will also learn how to use different prompting techniques, such as few-shot prompts, chain-of-thought prompts, and tree-of thought-prompts, to guide the generation process and produce high-quality results.
+ +Usually, Large Language Model (LLM) chat apps use a System Message and some templates to set the rules of the generation. We cannot change the system message for Copilot, but we can provide our own context for the session as a first message.
+ +In this exercise, we want you to be the CEO of a new spaceship startup, so Copilot will be your executive assistant that will help you shape your ideas. Write a prompt like this to set the context:
+
+You are an executive assistant to an awarded cook that now is the CEO of a cutting-edge spaceship startup; your role is multifaceted and pivotal. You possess a deep understanding of aerospace engineering, which allows you to contribute significantly to the design and logistics of human spaceships bound for Mars. Your strategic planning skills enable you to assist in setting long-term goals, allocating resources effectively, and ensuring that every project milestone aligns with the company’s ambitious vision.
+
+Your creative input is crucial in ideating innovative solutions and designing a corporate image that encapsulates the startup’s spirit. You’re adept at translating complex engineering concepts into comprehensive strategies, facilitating effective communication across departments. Your project management expertise ensures that all initiatives are executed flawlessly, reflecting the company’s commitment to pioneering space exploration.
+
+Above all, your personal traits are what make you extraordinary. Your passion for space, visionary outlook, and proactive nature equips you to anticipate challenges and address them with resilience. Detail-oriented and adaptable, you maintain composure under pressure, making you an indispensable asset to the CEO and the entire organization as you collectively strive to achieve the monumental task of shipping a human spaceship to Mars.
+
+
+This was again a zero-Shot prompt, but we are just establishing the context.
+ +To generate a name for your space startup, you can use a few-shot prompt, which is a type of prompt that provides some examples of the desired output, followed by an empty line where Bing Chat will fill in a new output based on the examples. For example, you can write:
+ +Some possible names for a space startup are:
+
+- SpaceX
+- Blue Origin
+- Virgin Galactic
+- Clearspace
+
+Generate three names for our space startup that builds and sends human spaceships to Mars and show the special background of our CEO:
+
+
+You can try different examples or add more details to the prompt, such as the type of service or product your startup offers, to get different results.
+ +Sending a spaceship with humans is tough. But as a startup, we must show investors that we’ve done our math. You can use chain-of-thought prompting to enforce the model to think about all the details. It involves guiding the AI to think through the problem step-by-step, leading it to the desired output:
+ +Calculate the costs of shipping a spaceship to Mars with a crew of 6, this first mission is a one-way trip, so we need to consider the travel time and how to send all the materials needed to survive on Mars. Let’s think step by step.
+
+This part of the project is called Budget.
+
+
+Now that you’ve calculated the costs of the mission, you might want to experiment with different scenarios. What if the crew size changed? Or the distance to Mars varied? Feel free to play around with these variables and see how the costs change.
+ +As you will be challenged by the investors when you present your plan, you can use a tree-of-thought prompting technique. This technique helps the model generate different ideas and choose the best one from them.
+ +I have selected the name for the startup: [PUT THE NAME YOU SELECTED HERE].
+Imagine our top three engineers are discussing three different ideas for our startup's business plan. Generate them and pick the best one.
+
+
+Prompt refinement and iteration: ask for additional improvements to the content generated. For example, generate the full plan based on that idea:
+ +Now, based on the executive summary and budget, please complete the business plan with the following sections: the executive summary, the market analysis, the service description, the sales strategy and the operations plan.
+
+This part of the project work is called Business Plan.
+
+
+Now that we have a lot of content, we can generate a mission statement for your space startup. For example, you can write:
+ +This part of the project work is called Mission Statement.
+
+Write a mission statement that reflects our objectives and the values of the company.
+
+
+Microsoft Copilot in Bing is a multimodal model, this means that it can also generate and understand pictures and audio. In this case the LLM has already a lot of information to work with, so we don’t need to provide lots of details, just indicate what we want in a clear statement. Let’s ask Copilot to generate a logo for our company:
+ +This part of the project is called Company Branding
+
+Create a monochromatic logo in red for our company that reflects the mission and values of our company.
+
+
+++ +Did you notice that the prompt for DALL·E was crafted by Copilot? You didn’t need to explain again that it was a spaceship company going to Mars, because it used the chains it already had. You can also go directly to https://www.bing.com/images/create to generate images with your own prompts.
+
In this step, you will use the AI to review and summarize all the content generated during the previous exercises. This step is crucial in ensuring that all the elements of your project are coherent and aligned with your objectives.
+ +Here’s how to proceed:
+ +Review: Start by asking the AI to review the text generated during the previous exercises. This will allow you to see all the content in one place and assess its overall quality and coherence.
+Summarize: Next, instruct the AI to generate a summary of all the content. The summary should highlight the key points from each part of the project, such as the business plan, budget, and company branding.
+Format: Finally, ask the AI to format the content in a specific way. For instance, you might want each part of the project to be presented as a separate section with its own title and description. This will make the content easier to read and understand.
+Remember, as with all AI interactions, you may need to refine your prompts or ask for additional improvements to get the desired output. Don’t be afraid to experiment and iterate until you get the results you’re looking for.
+ +Here’s the suggested prompt:
+ +Let's review all the text we wrote for the project. Can you give me the last edited copy for these parts of the project:
+
+* Business Plan
+* Budget
+* Company Branding
+
+And add a summary at the beginning.
+
+Can you format it like this:
+
+## Title ##
+
+Description
+
+
+Congratulations on completing this lab! Remember, the key to mastering AI is practice and experimentation. Don’t be afraid to try new things, make mistakes and learn from them. Keep experimenting with different prompts and techniques, and see where your creativity takes you with AI!
+ +Throughout this lab, you’ve gained hands-on experience in crafting and refining prompts, guiding AI language models to generate desired content, and using AI tools for practical applications.
+ +In particular, you’ve learned about various types of prompts, including seed text prompts, conditional prompts, multiple choice prompts, zero-shot prompts, and few-shot prompts. You’ve seen how these prompts can guide the AI model in different ways, from generating creative ideas to making detailed calculations.
+ +By creating elements for a fictional space startup, you’ve also seen how these techniques can be applied to real-world scenarios. Whether you’re generating a company name, mission statement, business plan, or logo, you now have the skills to use AI tools effectively in your own projects.
+ +We hope you found this lab engaging and insightful. We encourage you to continue exploring and experimenting with AI tools like Copilot in your future projects. Remember, the possibilities are as vast as space itself.
+ +Happy prompting!
+ +AI Companion: An artificial intelligence system designed to assist users in various tasks.
+Prompt: A command or statement that guides the AI in generating content.
+Seed Text Prompt: A simple, open-ended statement or question that serves as a starting point for AI-generated content.
+Conditional Prompt: A type of prompt where you guide the AI to generate content based on certain conditions or criteria.
+Multiple Choice Prompts: Prompts where the AI is presented with several options from which it must choose or recommend the most appropriate one.
+Zero-shot Prompts: These prompts do not provide any example, they directly instruct the model to answer a question and rely on the training data to obtain the answer.
+Few-shot Prompt: A type of prompt that provides some examples of the desired output, followed by an empty line where the AI will fill in a new output based on the examples.
+Chain-of-thought Prompting: A technique that involves guiding the AI to think through the problem step-by-step, leading it to the desired output.
+Tree-of-thought Prompting: A technique that helps the AI generate different ideas and choose the best one from them.
+Multimodal Model: An AI model capable of understanding and generating different types of data, such as text, images, and audio.
+System Message: A message that sets the rules for the generation process in AI chat apps.
+Templates: Predefined formats or structures that guide the generation process in AI chat apps.
+Context: The information that precedes the prompt and influences the AI’s response.
+Session: A sequence of interactions with the AI model.
+These definitions are specific to this lab guide and the usage of Microsoft’s AI companion, Copilot. The definitions might vary slightly in different contexts or with different AI systems.
+ +Here are a few more examples for each type of prompt mentioned in the guide:
+ +Remember to tailor the prompts to your specific needs and goals, and don’t be afraid to experiment with different formats and styles to get the best results.
+ + + + + + +