Skip to content

Commit 62bb4f3

Browse files
Merge pull request #109 from oracle-devrel/iopanait-develop49
added the new AI solution easyRAG-IN-A-BOX
2 parents 8c43e47 + f570721 commit 62bb4f3

29 files changed

+22543
-0
lines changed
Binary file not shown.

cloud-foundation/solutions/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Solutions implemented:
99

1010
***Live Lab & Demos Automation using AI and ML:***
1111

12+
- easyRAG-IN-A-BOX
1213
- Telco-Asset_Value_Maximization - Data in Industry - VERTICAL DEMO - (https://mysites.oracle.com/db-outbound/ai-and-ml---the-art-of-possible/ai-and-ml-demos-and-examples.html)
1314
- PublicSector-Crowd_Counting - Data in Industry - VERTICAL DEMO - (https://mysites.oracle.com/db-outbound/ai-and-ml---the-art-of-possible/ai-and-ml-demos-and-examples.html)
1415
- OracleDataModel-Manufacturing - Data in Industry - VERTICAL DEMO - (https://mysites.oracle.com/Data-In-Industry/)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright © 2025, Oracle and/or its affiliates.
2+
# All rights reserved. Licensed under the Universal Permissive License (UPL), Version 1.0 as shown at https://oss.oracle.com/licenses/upl.
3+
4+
.terraform
5+
*tfstate*
6+
*.pem
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!--
2+
3+
# Copyright © 2025, Oracle and/or its affiliates.
4+
# All rights reserved. Licensed under the Universal Permissive License (UPL), Version 1.0 as shown at https://oss.oracle.com/licenses/upl.
5+
6+
7+
-->
8+
# Contributing to Oracle Cloud Foundation Terraform Framework
9+
10+
## Contributing to Oracle Cloud Foundation Terraform Framework
11+
12+
Oracle welcomes contributions to this repository from anyone.
13+
14+
If you want to submit a pull request to fix a bug or enhance an existing
15+
feature, please first open an issue and link to that issue when you
16+
submit your pull request.
17+
18+
If you have any questions about a possible submission, feel free to open
19+
an issue too.
20+
21+
## Pull request process
22+
23+
1. Fork this repository
24+
1. Create a branch in your fork to implement the changes. We recommend using
25+
the issue number as part of your branch name, e.g. `1234-fixes`
26+
1. Ensure that there is at least one test that would fail without the fix and
27+
passes post fix
28+
1. Submit the pull request. *Do not leave the pull request blank*. Explain exactly
29+
what your changes are meant to do and provide simple steps on how to validate
30+
your changes, ideally referencing the test. Ensure that you reference the issue
31+
you created as well. We will assign the pull request to 1-2 people for review
32+
before it is submitted internally and the PR is closed.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright © 2025 Oracle and/or its affiliates. All rights reserved.
2+
3+
The Universal Permissive License (UPL), Version 1.0
4+
5+
Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this
6+
software, associated documentation and/or data (collectively the "Software"), free of charge and under any and
7+
all copyright rights in the Software, and any and all patent rights owned or freely licensable by each licensor
8+
hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, or
9+
(ii) the Larger Works (as defined below), to deal in both
10+
11+
(a) the Software, and
12+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if one is included with the Software
13+
(each a “Larger Work” to which the Software is contributed by such licensors),
14+
15+
without restriction, including without limitation the rights to copy, create derivative works of, display,
16+
perform, and distribute the Software and make, use, sell, offer for sale, import, export, have made, and have
17+
sold the Software and the Larger Work(s), and to sublicense the foregoing rights on either these or other terms.
18+
19+
This license is subject to the following condition:
20+
The above copyright notice and either this complete permission notice or at a minimum a reference to the UPL must
21+
be included in all copies or substantial portions of the Software.
22+
23+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
24+
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
26+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
27+
IN THE SOFTWARE.

cloud-foundation/solutions/easyRAG-IN-A-BOX/README.md

Lines changed: 589 additions & 0 deletions
Large diffs are not rendered by default.
9.79 KB
Loading
154 KB
Loading
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Copyright © 2025, Oracle and/or its affiliates.
2+
# All rights reserved. Licensed under the Universal Permissive License (UPL), Version 1.0 as shown at https://oss.oracle.com/licenses/upl.
3+
4+
data "oci_identity_availability_domains" "ADs" {
5+
compartment_id = var.tenancy_ocid
6+
}
7+
8+
data "oci_identity_tenancy" "tenancy" {
9+
tenancy_id = var.tenancy_ocid
10+
}
11+
12+
data "template_file" "ad_names" {
13+
count = length(data.oci_identity_availability_domains.ADs.availability_domains)
14+
template = lookup(data.oci_identity_availability_domains.ADs.availability_domains[count.index], "name")
15+
}
16+
17+
data "oci_core_services" "sgw_services" {
18+
filter {
19+
name = "cidr_block"
20+
values = ["all-.*-services-in-oracle-services-network"]
21+
regex = true
22+
}
23+
}
24+
25+
data "oci_identity_region_subscriptions" "home_region_subscriptions" {
26+
tenancy_id = var.tenancy_ocid
27+
28+
filter {
29+
name = "is_home_region"
30+
values = [true]
31+
}
32+
}
33+
34+
data "oci_objectstorage_namespace" "this" {}
35+
36+
37+
locals{
38+
ad_names = compact(data.template_file.ad_names.*.rendered)
39+
conn_db = module.adb.db_connection[0].profiles[1].value
40+
41+
# Create Autonomous Data Warehouse
42+
adw_params = {
43+
adw = {
44+
compartment_id = var.compartment_id
45+
compute_model = var.db_compute_model
46+
compute_count = var.db_compute_count
47+
size_in_tbs = var.db_size_in_tbs
48+
db_name = var.db_name
49+
db_workload = var.db_workload
50+
db_version = var.db_version
51+
enable_auto_scaling = var.db_enable_auto_scaling
52+
is_free_tier = var.db_is_free_tier
53+
license_model = var.db_license_model
54+
create_local_wallet = true
55+
database_admin_password = var.db_password
56+
database_wallet_password = var.db_password
57+
data_safe_status = var.db_data_safe_status
58+
operations_insights_status = var.db_operations_insights_status
59+
database_management_status = var.db_database_management_status
60+
is_mtls_connection_required = null
61+
subnet_id = null
62+
nsg_ids = null
63+
defined_tags = {}
64+
},
65+
}
66+
67+
68+
# Create Object Storage Buckets
69+
bucket_params = {
70+
rag_bucket = {
71+
compartment_id = var.compartment_id,
72+
name = var.bucket_name
73+
access_type = var.bucket_access_type
74+
storage_tier = var.bucket_storage_tier
75+
events_enabled = var.bucket_events_enabled
76+
defined_tags = {}
77+
}
78+
}
79+
80+
# End
81+
82+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright © 2025, Oracle and/or its affiliates.
2+
# All rights reserved. Licensed under the Universal Permissive License (UPL), Version 1.0 as shown at https://oss.oracle.com/licenses/upl.
3+
4+
# Create ADW Database with Endpoint in private subnet or public ADW
5+
module "adb" {
6+
source = "./modules/cloud-foundation-library/database/adb"
7+
adw_params = local.adw_params
8+
}
9+
10+
# Calling the Object Storage module
11+
module "os" {
12+
source = "./modules/cloud-foundation-library/object-storage"
13+
depends_on = [module.adb]
14+
tenancy_ocid = var.tenancy_ocid
15+
bucket_params = {
16+
for k,v in local.bucket_params : k => v if v.compartment_id != ""
17+
}
18+
}
19+
20+
# Ensure the bucket deletion happens after objects are removed
21+
resource "null_resource" "ensure_bucket_deletion_order" {
22+
depends_on = [null_resource.delete_files_from_object_storage]
23+
}

0 commit comments

Comments
 (0)