Upgrade Anypoint Connector for Einstein AI (Einstein AI Connector) from version 1.x to version 2.x.
Changes
2.0
-
This connector is now compatible with Java 17 only.
-
Document parsing now uses Apache Tika 4.0.0, instead of Apache Tika 2.9.4. Text extraction for some document types can differ from Einstein AI Connector 1.2.
-
File Type and Option Type are now enumerations on Embedding Adhoc File Query, Embedding Generate From File, and RAG Adhoc Load Document. The values are unchanged:
PDF,TEXT, andCSVfor File Type, andFULLandPARAGRAPHfor Option Type. -
These libraries are upgraded to address reported security vulnerabilities:
-
The
tika-coreandtika-parsers-standard-packagelibraries are upgraded to version 4.0.0. -
The
org.bouncycastlelibrary is upgraded to version 1.86. -
The
log4jdependency is excluded. -
The
junrarlibrary is upgraded to version 8.1.1. -
The
jacksonlibrary is upgraded to version 2.22.3. -
The
jsouplibrary is upgraded to version 1.23.2. -
The
commons-lang3library is upgraded to version 3.20.0.
-
Requirements
Ensure your system meets the following compatibility requirements before you perform the upgrade:
| Application/Service | Version |
|---|---|
Mule runtime |
4.9.0 and later |
Java |
17 |
Upgrade Prerequisites
Before you perform the upgrade, you must:
-
Create a backup of your files, data, and configuration in case you need to restore to the previous version.
-
Ensure that your environment meets the version 2.x requirements, including Java 17 and Mule runtime 4.9.0 or later.
-
Install Einstein AI Connector 2.x to replace the operations that were previously included in Einstein AI Connector 1.x.
Upgrade Steps
Follow these steps to perform the upgrade from Einstein AI Connector 1.x to Einstein AI Connector 2.x:
-
In Anypoint Studio, create a Mule project.
-
In the Mule Palette view, click Search in Exchange.
-
In the Add Dependencies to Project window, enter
Einstein AIin the search field. -
In the Available modules section, select Einstein AI Connector and click Add.
-
Click Finish.
-
Verify that the
mule4-einstein-ai-connectordependency version is2.x.xin thepom.xmlfile, wherex.xis the minor release and patch version number. For example, if you are upgrading to version 2.0, the dependency version in thepom.xmlfile should be2.0.0.
Studio upgrades the connector automatically.
Verify the Upgrade
After you install the latest version of the connector, follow these steps to verify the upgrade:
-
In Studio, verify that there are no errors in the Problems or Console views.
-
Check the project
pom.xmlfile and verify that there are no problems. -
Test the connection and verify that the operations work.
Troubleshooting
If there are problems with caching the parameters and caching the metadata, try restarting Studio.