Exploring GitLab Gen AI Features in GitLab Duo | Code Suggestions | Code Explanations | Code Chat

Поділитися
Вставка
  • Опубліковано 21 вер 2024
  • GitLab has made a significant stride in the world of AI-powered development tools by consolidating various AI capabilities under the umbrella term "GitLab Duo." In this blog post, I will explore the three prominent AI features within GitLab Duo: Code Suggestions, Code Explanations, and Code Chat, as I walk you through their setup and functionality.
    GitLab Duo: A Challenger to Copilot and More
    GitLab Duo aims to compete with the likes of GitHub Copilot by offering a suite of AI-driven development features. These capabilities are designed to enhance your coding experience, with many of them available in GitLab's ultimate tier, typically suited for enterprise use. To explore these features, you can take advantage of a 30-day ultimate license.
    Setting Up Code Suggestions
    One of the standout features of GitLab Duo is Code Suggestions. To get started, ensure your repository resides in GitLab and clone it to your local machine. Then, follow these steps:
    Install the GitLab Workflow extension for your preferred code editor (e.g., Visual Studio Code).
    Authenticate your GitLab account within the extension.
    Enable Code Suggestions in GitLab's console from the group level settings by enabling third-party AI features.
    In your user preferences, enable "Code Suggestions"
    Once these steps are completed, you can use Code Suggestions. Simply write code, and GitLab Duo will offer suggestions in real-time. You can accept the suggestions by clicking on them, enhancing your code-writing experience.
    Exploring Code Explanations
    Code Explanations is another valuable feature within GitLab Duo. To enable it, follow these steps:
    Ensure that "third-party AI services" are enabled in your settings.
    Select a code file and specific lines.
    While these explanations may not be exhaustive, they offer valuable insights into the code's purpose and functionality.
    Click on the question mark icon, and GitLab Duo will provide explanations for the selected code.
    Unlocking Code Chat
    Code Chat is a feature that allows you to ask questions and get code-related answers. To access Code Chat:
    Navigate to the left navigation pane in GitLab Duo and select "Help."
    Click on "GitLab Duo Chat."
    Within the chat, you can ask questions about code, configurations, or best practices. GitLab Duo will provide answers, helping you troubleshoot issues and understand code constructs more effectively.
    Additional GitLab Duo Features
    Apart from the features discussed above, GitLab Duo offers several other AI-driven capabilities, such as Code Review Summary, Test Record Explanation, Merge Request Summary, and more. These features focus on enhancing collaboration and making code review and merging processes more efficient.
    Conclusion
    GitLab Duo brings an exciting array of AI features to the table, designed to streamline your development workflow. As these features are continually evolving and expanding, it's essential to stay updated and take full advantage of GitLab's AI capabilities.
    If you're intrigued by the possibilities GitLab Duo offers or have specific AI features you'd like to see tested, please share your thoughts in the comments. With a 30-day ultimate license at your disposal, you can dive deeper into GitLab's Gen AI features and explore their potential for your development projects. Stay tuned for more insights and testing as I continue to uncover the power of GitLab Duo.
    / exploring-gitlab-gen-a...

КОМЕНТАРІ • 10

  • @AleksandrStrizhevskiy
    @AleksandrStrizhevskiy 4 місяці тому +1

    Thank you for this walkthrough. I was trying to figure out how to enable code completion. I see some people talking about how some things have changed around, but I will figure it out.

  • @Bigbosskhabrii
    @Bigbosskhabrii 7 місяців тому +2

    The preference doesn't have selected features

  • @nikitathombre5828
    @nikitathombre5828 7 місяців тому +1

    There is no enable code suggestions in preferences and 3rd party option in groups general setting

    • @nikitathombre5828
      @nikitathombre5828 7 місяців тому

      I,m using gitlab ultimate trial of 30 days

    • @azimshaik1827
      @azimshaik1827  7 місяців тому +1

      I checked and looks like they have changed things around

    • @RicardoSeifert
      @RicardoSeifert 6 місяців тому

      did you find the setting to activate the code suggestion? I also dont see it on the setting in GitLab

  • @Bigbosskhabrii
    @Bigbosskhabrii 7 місяців тому +1

    Can you help me with this

  • @Bigbosskhabrii
    @Bigbosskhabrii 7 місяців тому +1

    I can't find these features

    • @azimshaik1827
      @azimshaik1827  7 місяців тому

      You should have Gitlab ultimate subscription