Translate
With Select AI, you can use generative AI from the OCI translation service to translate your text into the language of your choice.
You can use this feature alongside the existing Select AI RAG. You can
combine translate with DBMS_CLOUD_AI.GENERATE or narrate to use
generative AI for producing translated outputs in your preferred language.
See TRANSLATE Function, GENERATE Function, and Example: Select AI Translate to learn more.
Topics
- Benefits of Translate
The translate feature in Select AI enables you to translate input text in different languages. - How Do I Use Translate
Select AI enables you to translate your text input into your preferred language by using thetranslateaction or by calling theDBMS_CLOUD_AI.GENERATEor theDBMS_CLOUD_AI.TRANSLATEfunctions.
Parent topic: Select AI Features
Benefits of Translate
The translate feature in Select AI enables you to translate input text in different languages.
- Translate improves usability by converting text into your preferred language, enabling you to work with the database more effectively.
- Translate lets you convert documents in one language into a language that may be better suited for your selected embedding model, producing better vectors for use with RAG.
- Automatically translate output into your preferred language when
using
DBMS_CLOUD_AI.GENERATEorNARRATE.
Parent topic: Translate
How Do I Use Translate
Select AI enables
you to translate your text input into your preferred language by using the
translate action or by calling the DBMS_CLOUD_AI.GENERATE or the
DBMS_CLOUD_AI.TRANSLATE functions.
To use the Select AI translation feature, you must have the appropriate IAM policy permissions to access Oracle Cloud Infrastructure Language services.
Grant the permission to use ai-service-language-family
resource in your IAM policy. An example policy statement to grant permission to a
user group in a specific compartment is:
allow group <your group name> to use ai-service-language-family in compartment <your_compartment>
-
If using Resource Principal credential, assign the permission to the Dynamic Group.
-
If using Private Key credential, assign the permission to the User Group.
A Dynamic Group identifies resources such as databases or functions by matching their OCIDs or tags, while a User Group contains individual IAM users.
Use a dynamic group when the policy applies to OCI resources, and use a user group when the policy applies to human users. For detailed steps to create dynamic and user groups, see Managing Dymanic Groups.
See Language Policies for more information.
-
Use
translateas a Select AI action. Useselect ai translate <text>. See Example: Select AI Actions. -
Provide
translateas an action within theDBMS_CLOUD_AI.GENERATEfunction. See GENERATE Function. -
Use the
DBMS_CLOUD_AI.TRANSLATEfunction. See TRANSLATE Function.See also Example: Select AI Translate to learn more.
Parent topic: Translate