Category: AI

  • GitHub Copilot: Your AI-Powered Coding Assistant

    Imagine having an experienced programmer sitting next to you who suggests code as you type, completes functions for you, and helps you solve problems. That’s exactly what GitHub Copilot does, the most popular AI coding assistant in the world.

    In this article, I’ll explain what it is, how it works, and how you can start using it even if you’re a beginner.


    What is GitHub Copilot?

    GitHub Copilot is an artificial intelligence tool developed by GitHub (owned by Microsoft) that helps you write code faster. It integrates directly into your code editor and offers:

    • Intelligent autocomplete: it doesn’t just complete words, but entire lines and functions.
    • Code generation: describe what you need in a comment and it generates the code.
    • Integrated chat: you can ask questions about your code, have it explain functions, or find bugs.
    • Multi-language support: works with Python, JavaScript, TypeScript, C#, Java, Go, Ruby, and many more.

    How does it work?

    GitHub Copilot uses AI models trained on public code to understand programming patterns. When you write code:

    1. It analyzes the context: it reads the file you’re working on, the comments, variable names, and the project structure.
    2. It predicts what you need: based on that context, it generates code suggestions.
    3. You decide: you can accept the suggestion with Tab, reject it, or ask for an alternative.

    It’s important to understand that Copilot suggests, it doesn’t decide. You always have control and should review what it generates.

    Plans and pricing

    PlanPriceIdeal for
    Free$0/monthStudents and small personal projects (limited suggestions)
    Pro$10/monthIndividual developers
    Business$19/user/monthTeams and companies
    Enterprise$39/user/monthLarge organizations with advanced needs

    The Free plan includes autocomplete and chat with monthly limits. It’s perfect for trying out the tool before committing to a paid plan.

    How to install GitHub Copilot in VS Code

    The most common way to use Copilot is in Visual Studio Code. Here’s a step-by-step guide:

    Step 1: Have a GitHub account

    If you don’t have one, create one for free at github.com.

    Step 2: Activate Copilot on your account

    1. Go to github.com/settings/copilot.
    2. Select the plan you prefer (you can start with Free).
    3. Complete the setup.

    Step 3: Install the extension in VS Code

    1. Open Visual Studio Code.
    2. Go to the Extensions tab (Ctrl+Shift+X).
    3. Search for “GitHub Copilot”.
    4. Click Install.
    5. Also install “GitHub Copilot Chat” for the integrated chat.

    Step 4: Sign in

    1. VS Code will ask you to sign in with your GitHub account.
    2. Authorize the extension.
    3. Done, Copilot is active.

    Copilot in action: practical examples

    Example 1: Intelligent autocomplete

    You type the start of a function:

    def calculate_tax(subtotal, rate):

    Copilot automatically suggests:

    def calculate_tax(subtotal, rate):
        tax = subtotal * (rate / 100)
        return round(tax, 2)

    You press Tab to accept and keep working.

    Example 2: Generate code from a comment

    You write a comment describing what you need:

    # Function that reads a CSV file and returns a dictionary
    # where the keys are the column names

    Copilot generates:

    import csv
    
    def read_csv_as_dictionary(file_path):
        with open(file_path, 'r', encoding='utf-8') as file:
            reader = csv.DictReader(file)
            return [row for row in reader]

    Example 3: Use the chat to understand code

    You select a block of code you don’t understand, open the Copilot chat (Ctrl+Shift+I), and ask:

    “What does this code do?”

    Copilot gives you a clear explanation in plain language, line by line if needed.

    Example 4: Ask it to fix a bug

    If you have a bug in your code, you can select it and tell the chat:

    “This code throws a TypeError, can you fix it?”

    Copilot analyzes the problem and suggests the fix.

    Copilot Chat: your pair programming buddy

    Beyond autocomplete, GitHub Copilot includes a chat that you can use to:

    • Explain code: “Explain this function to me”
    • Generate tests: “Generate unit tests for this class”
    • Refactor: “Simplify this function”
    • Document: “Add docstrings to these functions”
    • Debug: “Why does this code return None?”
    • Learn: “What’s the difference between a list and a tuple in Python?”

    To open the chat in VS Code:

    • Side panel: click the Copilot icon in the sidebar.
    • Inline chat: press Ctrl+I inside the editor to request changes directly in your code.

    Tips to get the most out of it

    1. Write descriptive comments

    Copilot works better when it understands your intent. A clear comment like # Validate that the email has the correct format generates better code than just starting to write the function.

    2. Give it context with good names

    Use descriptive names for variables and functions. calculate_total_with_discount(price, percentage) gives Copilot much more context than func(a, b).

    3. Always review the generated code

    Copilot is impressive, but it’s not infallible. It can generate code with subtle bugs, security vulnerabilities, or that simply doesn’t do what you expect. Always review before accepting.

    4. Use the chat to learn

    If you’re a beginner, Copilot’s chat is an incredible learning tool. It doesn’t just give you code, it explains why it works that way.

    5. Try the Ctrl+Enter shortcut

    If the first suggestion doesn’t convince you, press Ctrl+Enter to see multiple alternatives and choose the one that fits best.

    Other compatible editors

    While VS Code is the most popular, GitHub Copilot also works in:

    • Visual Studio (Microsoft’s full IDE)
    • JetBrains IDEs (IntelliJ, PyCharm, WebStorm, Rider, etc.)
    • Neovim
    • Xcode (beta support)

    Limitations you should know about

    • It doesn’t understand your full business logic: Copilot sees individual files and nearby context, not your entire architecture.
    • It can suggest insecure code: don’t blindly trust suggestions for code that handles authentication, encryption, or sensitive data.
    • It’s not always correct: suggestions are probabilistic, not deterministic. The same prompt can give different results.
    • Licensed code: although GitHub has taken measures, there’s an ongoing debate about whether some suggestions may reflect code with specific licenses.

    Conclusion

    GitHub Copilot has changed the way millions of developers work. Whether you’re just starting to code or you’ve been at it for years, having an AI assistant that understands your code and helps you in real time is an advantage that’s hard to ignore.

    My recommendation: activate the free plan, install the extension in VS Code, and use it for a week. You’ll notice the difference from day one.

    Do you use GitHub Copilot? What’s your favorite trick? Share it in the comments.
  • Microsoft Copilot: A Complete Guide for Beginners

    Microsoft has gone all in on artificial intelligence, and its most visible move is Copilot: an AI assistant integrated into virtually every Microsoft product. But with so many versions and names, it’s easy to get lost. In this article, I’ll explain what Copilot is, what its variants are, and how you can start using it today.


    What is Microsoft Copilot?

    Microsoft Copilot is an artificial intelligence assistant powered by large language models (like GPT-4) that is integrated into Microsoft products. Its goal is to help you be more productive: drafting text, analyzing data, creating presentations, automating tasks, and much more, using natural language.

    Instead of learning complicated commands, you simply tell Copilot what you need and it does it for you.

    The different versions of Copilot

    This is where many people get confused. Microsoft uses the name “Copilot” for several different products:

    Copilot (free)

    • Available at copilot.microsoft.com and in the Windows 11 sidebar.
    • Works like Microsoft’s version of ChatGPT: you can ask questions, generate text, create images, and have conversations.
    • No paid subscription required.

    Microsoft 365 Copilot

    • Integrated directly into Word, Excel, PowerPoint, Outlook, and Teams.
    • Requires a Microsoft 365 license and an additional Copilot subscription.
    • The most powerful option for work environments because it has access to your documents, emails, and calendar.

    Copilot Studio

    • A platform for creating custom AI agents without needing to code.
    • Allows you to connect your own data sources and define conversation flows.
    • Ideal for companies that want specialized chatbots.

    GitHub Copilot

    • Designed specifically for developers.
    • Integrates into code editors like VS Code.
    • We’ll cover it in detail in the next article.

    What can Microsoft 365 Copilot do?

    Let’s look at concrete examples in each application:

    In Word

    • “Write a 500-word report on AI trends in 2025” and Copilot generates the complete draft.
    • “Summarize this document in 3 key points” and you get an instant summary.
    • “Change the tone of this paragraph to more formal” and it rewrites the text.

    In Excel

    • “Create a pivot table with sales by region” and Copilot generates it automatically.
    • “Which month had the highest revenue?” and it analyzes the data for you.
    • “Add a column with the monthly growth percentage” and it writes the formula.

    In PowerPoint

    • “Create a 10-slide presentation about our strategic plan” using content from a Word document.
    • “Add a slide with a comparison chart” and it generates one.
    • “Improve the design of this presentation” and it applies visual changes.

    In Outlook

    • “Summarize the emails from this week about Project Alpha” and it gives you a summary.
    • “Draft a professional response declining this meeting” and it prepares the email.
    • “What pending items do I have based on my recent emails?” and it extracts the tasks.

    In Teams

    • “Summarize what was discussed in today’s meeting” (from the transcript).
    • “What decisions were made?” and it extracts the key points.
    • “Draft a follow-up for the team” with the action items.

    How to start using Copilot (free)

    The fastest way to try Copilot without spending anything:

    Option 1: In the browser

    1. Go to copilot.microsoft.com.
    2. Sign in with your Microsoft account (or use it without one).
    3. Type your question or request.

    Option 2: In Windows 11

    1. Press Windows + C (or search for “Copilot” in the Start menu).
    2. The Copilot side panel opens.
    3. You can ask it to change system settings, find files, or answer questions.

    Option 3: On the mobile app

    1. Download the Microsoft Copilot app on iOS or Android.
    2. Sign in and start using it as a personal assistant.

    How to access Microsoft 365 Copilot

    For the version integrated into Office, you need:

    1. A Microsoft 365 license (Business Standard, Business Premium, E3, or E5).
    2. The Copilot subscription: $30 USD/user/month for businesses.
    3. Activation by your organization’s administrator.

    If you’re a small business or freelancer, evaluate whether the cost is justified by the time you’ll save. For many users, Copilot in Word and Excel alone justifies the investment.

    Tips to get the most out of it

    1. Be specific in your instructions

    Instead of: “Make me a presentation”
    Better: “Create an 8-slide presentation about the benefits of migrating to the cloud, targeted at IT directors, with data and charts”

    2. Provide context

    Copilot works better when it has context. In Word, select a paragraph before asking it to improve it. In Excel, make sure your data has clear headers.

    3. Iterate

    The first result won’t always be perfect. Ask for adjustments: “Make it shorter”, “Add examples”, “Shift the focus to costs”.

    4. Combine tools

    The real power of Copilot shows when you use it across applications. For example:

    • Generate an analysis in Excel.
    • Ask Copilot in Word to create a report based on that analysis.
    • Then generate a presentation in PowerPoint with the key takeaways.

    Limitations you should know about

    • It can generate incorrect information: always verify important data, especially numbers and dates.
    • It doesn’t replace human judgment: it’s an assistant, not a decision-maker.
    • It works better in English: while it supports other languages, English responses tend to be more accurate.
    • It requires well-organized data: in Excel, if your data is messy, Copilot’s results will be too.

    Conclusion

    Microsoft Copilot is one of the most accessible AI tools on the market. From the free browser version to the full Microsoft 365 integration, there’s an option for every type of user. The key is to start using it, experiment with different prompts, and discover how it can save you time in your daily work.

    In the next article, we’ll focus on GitHub Copilot, the AI tool that is transforming the way developers write code.

    Have you tried Copilot? Share your experience in the comments.
  • What is Azure OpenAI Service and How to Get Started

    If you’ve heard about ChatGPT, you’re probably wondering how companies are using that same technology in their own projects. The answer is Azure OpenAI Service, Microsoft’s cloud service that lets you use OpenAI models (like GPT-4, GPT-4o, and DALL-E) within Azure, with all the security and compliance that organizations need.

    In this article, I’ll explain what it is, what it’s used for, and how you can take your first steps.


    What is Azure OpenAI Service?

    Azure OpenAI Service is a cloud service on Microsoft Azure that gives you access to OpenAI’s artificial intelligence models. This includes:

    • GPT-4o and GPT-4: for generating text, answering questions, summarizing documents, and much more.
    • DALL-E 3: for generating images from text.
    • Whisper: for converting audio to text.
    • Embeddings: for semantic search and recommendation systems.

    The key difference from using OpenAI directly is that Azure OpenAI offers:

    • Enterprise security: your data is not used to train models.
    • Regulatory compliance: certifications like ISO 27001, SOC 2, HIPAA, and more.
    • Private networking: you can connect the service to your Azure virtual network.
    • Access control: integration with Azure Active Directory (Entra ID).

    How is it used in the real world?

    Intelligent chatbots

    Build virtual assistants that understand natural language and can answer questions about products, services, or internal documentation.

    Content generation

    Automate the writing of emails, reports, product descriptions, or blog posts.

    Document analysis

    Summarize contracts, extract key information from reports, or automatically classify support tickets.

    Smart search

    Implement semantic search over internal knowledge bases, where users ask questions in their own words and the system finds the relevant answer.

    What do you need to get started?

    1. An Azure subscription

    If you don’t have one, you can create a free account at azure.microsoft.com. Microsoft gives you $200 USD in credits for 30 days.

    2. Request access to Azure OpenAI

    Azure OpenAI requires prior approval. You need to fill out a form in the Azure portal indicating your use case. Approval usually takes between 1 and 5 business days.

    3. Create the resource in Azure

    Once approved:

    1. Go to the Azure Portal (portal.azure.com).
    2. Search for “Azure OpenAI” in the search bar.
    3. Click Create.
    4. Select your subscription, resource group, and region.
    5. Give the resource a name and select the pricing tier.
    6. Click Review + Create.

    4. Deploy a model

    Inside your Azure OpenAI resource:

    1. Go to Azure OpenAI Studio (oai.azure.com).
    2. In the side menu, select Deployments.
    3. Click Create new deployment.
    4. Choose the model (for example, gpt-4o).
    5. Name the deployment and confirm.

    Your first API call

    Once you have your model deployed, you can test it directly from Azure OpenAI Studio using the Chat Playground. But if you want to do it from code, here’s a Python example:

    import openai
    
    client = openai.AzureOpenAI(
        api_key="YOUR_API_KEY",
        api_version="2024-10-21",
        azure_endpoint="https://YOUR-RESOURCE.openai.azure.com/"
    )
    
    response = client.chat.completions.create(
        model="your-deployment-name",
        messages=[
            {"role": "system", "content": "You are a helpful assistant."},
            {"role": "user", "content": "What is artificial intelligence?"}
        ]
    )
    
    print(response.choices[0].message.content)

    To install the required library:

    pip install openai

    How much does it cost?

    Azure OpenAI charges per token (chunks of text). As an approximate reference:

    ModelInput (per 1M tokens)Output (per 1M tokens)
    GPT-4o~$2.50 USD~$10.00 USD
    GPT-4o mini~$0.15 USD~$0.60 USD
    GPT-4~$30.00 USD~$60.00 USD

    For a small or test project, costs are usually just a few dollars per month. You can set up spending alerts in Azure to avoid surprises.

    Next steps

    Now that you know the basics of Azure OpenAI Service, I recommend:

    1. Create your free Azure account and request access.
    2. Explore Azure OpenAI Studio: the playground lets you experiment without writing code.
    3. Try a simple use case: a basic chatbot or a summary generator.
    4. Check out the official documentation: learn.microsoft.com/azure/ai-services/openai

    Conclusion

    Azure OpenAI Service is the gateway to bringing generative AI into your projects and your business, with the trust and security that Microsoft Azure provides. You don’t need to be an AI expert to get started: with an Azure account and a few minutes of setup, you can have your first model up and running.

    In the next article, we’ll explore Microsoft Copilot, the AI assistant that Microsoft is integrating into all of its tools.

    Have questions? Leave a comment and I’ll help you take your first steps with Azure OpenAI.