|
| 1 | +# MindMapGenerator using OCI Generative AI & Visual Builder |
| 2 | + |
| 3 | +MindMapGenerator, can take a text, analyze it, classify it into levels and sublevels, and generate a structured mind map based on the content using Generative AI. It also works with PDF documents by leveraging Oracle Document Understanding to analyze and extract information from the file before creating the mind map. Additionally, the demo can capture information in real-time using the Speech service, processing spoken input to generate an insightful and organized mind map on the fly. Can be complementary to AI Meetings or other different use cases. |
| 4 | + |
| 5 | +Reviewed: 17.12.2024 |
| 6 | + |
| 7 | +# **1. Prepare your user** |
| 8 | + |
| 9 | + In Oracle Cloud Infrastructure (OCI), API keys are used for secure authentication when accessing OCI resources through REST APIs. OCI API keys consist of two parts: a Public key and a Private key. You use the OCI console to generate the Private/Public key pair. |
| 10 | + Generate API Keys using OCI Console |
| 11 | + To Generate the API Keys using OCI Console: |
| 12 | + |
| 13 | + - Login into your OCI Account. |
| 14 | + ![alt text] |
| 15 | + - Click on the Profile icon at the top-right corner and select your Profile hyperlink. |
| 16 | +  |
| 17 | + - Under Resources section at the bottom-left, select API Keys and then click Add API Key. |
| 18 | +  |
| 19 | + - The Add API Key dialog is displayed. Select Generate API Key Pair to create a new key pair. |
| 20 | +  |
| 21 | + - Click Download Private Key. A .pem file is saved to your local device. You do not need to download the public key and click Add button. |
| 22 | +  |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | +# **2.Pick you compartment** |
| 27 | +Identify the compartment you're currently working within. Navigate to 'Identity' -> 'Compartments'. Locate your compartment and make a note of its OCID (Oracle Cloud Identifier) |
| 28 | + |
| 29 | +# **3.Open Visual Builder** |
| 30 | +## Import Visual Builder project |
| 31 | +* Open Visual Builder and click on the "Import" button. Choose "Application from file". |
| 32 | +* Drop the zip project file |
| 33 | +* Provide a name and an ID, for example "MindMaps_Generator". Click on Import button. |
| 34 | + |
| 35 | + |
| 36 | +## Configure REST APIs authentication |
| 37 | +* Open the recently created project. |
| 38 | + |
| 39 | +* Click on Services button (left side) and click on "Backends" |
| 40 | +  |
| 41 | +* Now, click on GenAI, and Servers to edit server authentication. |
| 42 | +* Click the pencil to provide the OCI Crendentials |
| 43 | +* Provide the crendentials you got during the step 1. |
| 44 | +  |
| 45 | + |
| 46 | +* Repeat the same process with the GenAI backend. |
| 47 | + |
| 48 | +## Provide your compartmentId and all the required variables |
| 49 | +* Provide compartmentId default value in the project variable named "compartmentID" that you got during the step 2. |
| 50 | +  |
| 51 | +Repeat the process with bucketName, cohereModel,namespace & prefix |
| 52 | + |
| 53 | +## Provide JS libray to generate MindMaps |
| 54 | +* I developed this sample using go.js but you can replace by any other. Please update the html page in the application providing your library |
| 55 | + |
| 56 | +# **4.Preview the application** |
| 57 | +* Now can provide a topic in the text area and click "generate" button. |
| 58 | +  |
| 59 | + |
| 60 | +* Automatically a mindmap will be created. |
| 61 | +  |
| 62 | + |
| 63 | +## Notes |
| 64 | +* It is important to note that, you can use any open source or licensed JS library to generate the MindMap. And you can do using Free Text & Documents Analysis. If you want to use Real Time Transcription you need to configure a Speech Bridge and modify the JS page. |
| 65 | + |
| 66 | +## I hope you liked it. |
| 67 | +Author: Jesús Brasero |
| 68 | + |
| 69 | +# License |
| 70 | + |
| 71 | +Copyright (c) 2024 Oracle and/or its affiliates. |
| 72 | + |
| 73 | +Licensed under the Universal Permissive License (UPL), Version 1.0. |
| 74 | + |
| 75 | +See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details. |
0 commit comments