Skip to content

Commit 24cfeac

Browse files
author
Prabha Kylasamiyer Sundara Rajan
committed
MTA-5198 Solution Server Configurations
Signed-off-by: Prabha Kylasamiyer Sundara Rajan <[email protected]>
1 parent 2ce6e4f commit 24cfeac

File tree

10 files changed

+182
-0
lines changed

10 files changed

+182
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
:_newdoc-version: 2.18.3
2+
:_template-generated: 2025-03-17
3+
4+
ifdef::context[:parent-context-of-solution-server-configurations: {context}]
5+
6+
:_mod-docs-content-type: ASSEMBLY
7+
8+
ifndef::context[]
9+
[id="solution-server-configurations"]
10+
endif::[]
11+
ifdef::context[]
12+
[id="solution-server-configurations_{context}"]
13+
endif::[]
14+
= Solution Server Configurations
15+
:context: solution-server-configurations
16+
17+
[role=_abstract]
18+
Solution server is a component that allows {mta-dl-plugin} to build a collective memory of code changes from all analysis performed in an organization. In the local context of an analysis run in the Visual Studio (VS) Code, the Solution Server augments previous patterns of how codes changed to resolve issues (also called solved examples) that were similar to those in the current file, and suggests a resolution that has a higher confidence level derived from previous solutions.
19+
20+
As {mta-dl-plugin} is an optional set of features in {ProductShortName}, you must complete the following configurations before you can access settings necessary to use AI analysis.
21+
22+
include::topics/developer-lightspeed/proc_tackle-llm-secret.adoc[leveloffset=+1]
23+
24+
include::topics/developer-lightspeed/proc_tackle-enable-dev-lightspeed.adoc[leveloffset=+1]
25+
26+
ifdef::parent-context-of-solution-server-configurations[:context: {parent-context-of-solution-server-configurations}]
27+
ifndef::parent-context-of-solution-server-configurations[:!context:]
28+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/home/pkylasam/Documents/repos/mta-documentation/docs/topics
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../assemblies/
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<title>IntelliJ IDEA Plugin Guide</title>
2+
<productname>{DocInfoProductName}</productname>
3+
<productnumber>{DocInfoProductNumber}</productnumber>
4+
<subtitle>Identify and resolve migration issues by analyzing your applications with the {ProductName} plugin for IntelliJ IDEA.</subtitle>
5+
<abstract>
6+
<para>
7+
This guide describes how to use the {ProductName} plugin for IntelliJ IDEA to accelerate large-scale application modernization efforts across hybrid cloud environments on Red Hat OpenShift.
8+
</para>
9+
</abstract>
10+
<authorgroup>
11+
<orgname>Red Hat Customer Content Services</orgname>
12+
</authorgroup>
13+
<xi:include href="Common_Content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
:mta:
2+
include::topics/templates/document-attributes.adoc[]
3+
:_mod-docs-content-type: ASSEMBLY
4+
[id="mta-developer-lightspeed"]
5+
= MTA with Developer Lightspeed
6+
7+
:toc:
8+
:toclevels: 4
9+
:numbered:
10+
:imagesdir: topics/images
11+
:context: mta-developer-lightspeed
12+
:mta-developer-lightspeed:
13+
14+
//Inclusive language statement
15+
include::topics/making-open-source-more-inclusive.adoc[]
16+
17+
18+
19+
include::assemblies/developer-lightspeed-guide/assembly_solution-server-configurations.adoc[leveloffset=+1]
20+
21+
:!mta-developer-lightspeed:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../topics
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
:_newdoc-version: 2.15.0
2+
:_template-generated: 2024-2-21
3+
:_mod-docs-content-type: PROCEDURE
4+
5+
[id="tackle-enable-dev-lightspeed_{context}"]
6+
= Enabling {mta-dl-plugin} in Tackle custom resource
7+
8+
[role="_abstract"]
9+
Solution Server integrates with the {ProductShortName} Hub backend component to use the database and volumes necessary to store and retrieve the solved examples.
10+
11+
To enable Solution Server and other AI configurations in the {ProductShortName} VS Code extension, you must modify the Tackle custom resource (CR) with additional parameters.
12+
13+
.Prerequisites
14+
15+
//the hard link must be changed to the same topic in 8.0.0 that has the `{mta-dl-plugin}-database` req.
16+
. You deployed an additional RWO volume for `{mta-dl-plugin}-database` if you want to use {mta-dl-plugin}. See link:https://docs.redhat.com/en/documentation/migration_toolkit_for_applications/7.3/html/user_interface_guide/mta-7-installing-web-console-on-openshift_user-interface-guide#openshift-persistent-volume-requirements_user-interface-guide[Persistent volume requirements] for more information.
17+
18+
. You installed the {ProductShortName} operator v8.0.0.
19+
20+
21+
.Procedure
22+
23+
. Log in to the {ocp-short} cluster and switch to the `openshift-mta` project.
24+
+
25+
. Edit the Tackle custom resource (CR) settings in the `tackle_hub.yml` to enable {mta-dl-plugin} and then enter applicable values for `kai_llm_provider` and `kai_llm_model` variables.
26+
+
27+
[source, yaml]
28+
----
29+
---
30+
kind: Tackle
31+
apiVersion: tackle.konveyor.io/v1alpha1
32+
metadata:
33+
name: mta
34+
namespace: openshift-mta
35+
spec:
36+
kai_solution_server_enabled: true
37+
kai_llm_provider: ChatIBMGenAI
38+
# optional, pick a suitable model for your provider
39+
kai_llm_model: <model-name>
40+
...
41+
----
42+
+
43+
//How about Amazon Bedrock, Deepseek, and Azure OpenAI?
44+
[NOTE]
45+
====
46+
The default large language model (LLM) provider is `ChatIBMGenAI`. You may also enter `google` or `openai` as providers.
47+
====
48+
+
49+
. Apply the Tackle CR by using the following command.
50+
+
51+
[source, terminal]
52+
----
53+
$ kubectl apply -f tackle_hub.yaml
54+
----
55+
56+
.Verification
57+
58+
. Enter the following command to verify the {mta-dl-plugin} resources.
59+
+
60+
[source, terminal]
61+
----
62+
kubectl get deploy,svc -n openshift-mta | grep -E 'kai-(api|db|importer)'
63+
----
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
:_newdoc-version: 2.15.0
2+
:_template-generated: 2024-2-21
3+
:_mod-docs-content-type: PROCEDURE
4+
5+
[id="tackle-llm-secret_{context}"]
6+
= Configuring the model secret key
7+
8+
[role="_abstract"]
9+
10+
You must configure the Kubernetes secret for the large language model (LLM) provider in the {ocp-short} project where you installed the {ProductShortName} operator.
11+
12+
.Procedure
13+
14+
. Create a credentials secret named `kai-api-keys` in the `openshift-mta` project.
15+
.. For the default IBM GenAI provider `ChatIBMGenAI`, type:
16+
+
17+
[source, terminal]
18+
----
19+
kubectl create secret generic kai-api-keys -n openshift-mta \
20+
--from-literal=genai_key='<YOUR_IBM_GENAI_KEY>'
21+
----
22+
+
23+
.. For the Google as the provider, type:
24+
+
25+
[source, terminal]
26+
----
27+
kubectl create secret generic kai-api-keys -n openshift-mta \
28+
--from-literal=google_key='<YOUR_GOOGLE_API_KEY>'
29+
----
30+
+
31+
.. For the OpenAI-compatible providers, type:
32+
+
33+
[source, terminal]
34+
----
35+
kubectl create secret generic kai-api-keys -n openshift-mta \
36+
--from-literal=api_base='https://api.openai.com/v1' \
37+
--from-literal=api_key='<YOUR_OPENAI_KEY>'
38+
----
39+
+
40+
. (Optional) Force a reconcile so that the {ProductShortName} operator picks up the secret immediately
41+
+
42+
//Is the double tackle needed in the command?
43+
[source, terminal]
44+
----
45+
kubectl patch tackle tackle -n openshift-mta --type=merge -p \
46+
'{"metadata":{"annotations":{"konveyor.io/force-reconcile":"'"$(date +%s)"'"}}}'
47+
----

docs/topics/mta-7-installing-web-console-on-openshift.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ To successfully deploy, the {ProductShortName} Operator requires 2 RWO persisten
4848
|`100Gi`
4949
|RWX
5050
|Maven m2 cache; required if the `rwx_supported` configuration option is set to `true`
51+
52+
|`{mta-dl-plugin} database`
53+
|`5Gi`
54+
|`RWO`
55+
|{mta-dl-plugin} database required to run an AI-driven analysis.
56+
//verify the final d/s name of this resource.
5157
|====
5258

5359
[id="installing-mta-operator-and-ui_{context}"]

docs/topics/templates/document-attributes.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ ifdef::mta[]
2828
:WebConsoleBookName: {WebNameTitle} Guide
2929
:ProductVersion: 7.3.1
3030
:PluginName: MTA plugin
31+
:mta-dl-plugin: MTA with Developer Lightspeed
3132
// :MavenProductVersion: 7.0.0.GA-redhat-00001
3233
:ProductDistributionVersion: 7.3.1.GA-redhat
3334
:ProductDistribution: mta-7.3.1.GA-cli-offline.zip

0 commit comments

Comments
 (0)