Configuring the Konveyor AI profile settings
You can use the Visual Studio (VS) Code plugin to run an analysis to discover issues in the code. You can optionally enable Konveyor AI to get AI-assisted code suggestions.
To generate code changes using the Konveyor extension, you must configure a profile that contains all the necessary configurations, such as source and target technologies and the API key to connect to your chosen large language model (LLM).
Prerequisites
-
You completed the Solution Server configurations in Tackle custom resource if you opt to use the Solution Server.
-
You opened a Java project in your VS Code workspace.
Procedure
-
Open the
Konveyor View Analysispage in either of the following ways:-
Click the book icon on the
Konveyor: Issuespane of the Konveyor extension. -
Type
Ctrl + Shift + PorCmd + Shift + Pon the search bar to open the Command Palette and enterKonveyor:Open Analysis View.
-
-
Click the settings button on the
Konveyor View Analysispage to configure a profile for your project. TheGet Ready to Analyzepane lists the following basic configurations required for an analysis:
| Profile settings | Description |
|---|---|
| Select profile | Create a profile that you can reuse formultiple analyses. The profile name is part of the context provided tothe LLM for analysis. |
| Configure label selector | A label selector filters rules foranalysis based on the source or target technology.Specify one or more target or source technologies (for example,cloud-readiness). The Konveyor extension uses this configuration todetermine the rules that are applied to a project during analysis.If you mentioned a new target or a source technology in your customrule, you can type that name to create and add the new item to thelist. You must configure either target or source technologies beforerunning an analysis. |
| Set rules | Enable default rules and select yourcustom rule that you want Konveyor to use for an analysis. You can usethe custom rules in addition to the default rules. |
| Configure generative AI | This option opens theprovider-settings.yaml file that contains API keys andother parameters for all supported LLMs. By default, Konveyor AI isconfigured to use OpenAI LLM. To change the model, update the anchor&active to the desired block. Modify this file with therequired arguments, such as the model and API key, to complete thesetup. See Configuring the LLM provider settings. |
Verification
After you complete the profile configuration, close the Get Ready to Analyze pane. You can verify that your configuration works by running an analysis.