Skip to content

Commit 4f7150a

Browse files
authored
Merge branch 'main' into synuora-data-development-devops-db-supp-features-01
2 parents 57d532a + 7c0269d commit 4f7150a

File tree

49 files changed

+1230
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1230
-61
lines changed

ai-and-app-modernisation/ai-services/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,19 @@ Oracle Cloud Infrastructure (OCI) AI Services is a collection of services with p
55
# Table of Contents
66

77
- [Useful Links](#useful-links)
8+
- [Reusable Assets](#reusable-assets)
89

910
# Useful Links
1011

1112
- [Oracle AI Services Oracle.com Page](https://www.oracle.com/artificial-intelligence/ai-services/)
1213
- [Oracle’s Generative AI strategy](https://blogs.oracle.com/ai-and-datascience/post/generative-ai-strategy)
14+
- [OCI AI Foundations Certification](https://mylearn.oracle.com/ou/component/-/127179/198553)
15+
- [AI use cases - 10 examples](https://www.oracle.com/a/ocom/docs/gated/ai-use-cases-ebook.pdf)
16+
- [Availability of AI Services across OCI datacenters](https://www.oracle.com/uk/cloud/public-cloud-regions/service-availability/#commercial)
17+
18+
# Reusable Assets
19+
- [Smarter Applications with AI Services](https://go.oracle.com/LP=138234?elqCampaignId=489428&src1=:so:ch:or:dg::::&SC=:so:ch:or:dg::::&pcode=WWMK230822P00010)
20+
- [Oracle AI Strategy and Platform webinar](https://go.oracle.com/LP=138234?elqCampaignId=489428&src1=:so:ch:or:dg::::&SC=:so:ch:or:dg::::&pcode=WWMK230822P00010)
1321

1422
# License
1523

ai-and-app-modernisation/ai-services/ai-speech/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ OCI Speech is an AI service that applies automatic speech recognition technology
3333

3434
- [Oracle AI Speech on oracle.com](https://www.oracle.com/uk/artificial-intelligence/speech/)
3535
- [Oracle AI Speech documentation](https://docs.oracle.com/en-us/iaas/Content/speech/home.htm)
36+
- [Oracle Speech AI service now supports diarization](https://blogs.oracle.com/ai-and-datascience/post/oracle-speech-ai-service-now-supports-diarization)
3637

3738

3839
# License

ai-and-app-modernisation/ai-services/generative-ai-service/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ most performant and cost-effective platform to host their AI services.
2121

2222
# Team Publications
2323

24+
- [Oracle Generative AI webinar](https://go.oracle.com/LP=138234?elqCampaignId=489428&src1=:so:ch:or:dg::::&SC=:so:ch:or:dg::::&pcode=WWMK230822P00010)
25+
- [Creating a RAG (Retrieval-Augmented Generation) with Oracle Generative AI Service in just 21 lines of code](https://github.com/oracle-devrel/technology-engineering/tree/main/ai-and-app-modernisation/ai-services/generative-ai-service/rag-genai)
2426
- [Summarize any document using Oracle Generative AI](https://www.youtube.com/watch?v=6A3KGyKy91Q)
2527
- [Dubai Citizen's Dream: An Oracle GenAI-Powered Oracle BOT to Answer All Your Questions (RAG on websites)](https://www.youtube.com/watch?v=5Y_k1r34Mp0)
2628
- [Document Chatbot with Oracle Generative AI](https://www.youtube.com/watch?v=vyJAZvYKY34)
@@ -29,21 +31,20 @@ most performant and cost-effective platform to host their AI services.
2931
- [Enabling a WhatsApp Customer HelpMate using OCI Generative AI, AI-Language & Integration](https://youtu.be/ryo3wVB_69E?si=SxSuTVawoRcbhReU)
3032
- Use OCI Generative AI (in pre-availability) for "Customer Service Quick Replies" Generation for Whatsapp Neutral Messages (customer questions, queries, etc.), sentence-level sentiment analysis from OCI AI Language to uncover overall sentiment and set service ticket severity for negative Whatsapp messages, automatically classify Customer Service tickets through OCI AI Language custom text classification and aspect-based sentiment analysis (ABSA) services
3133
- Learn how Oracle Integration Cloud and Oracle Cloud Infrastructure (OCI) Streaming allow real-time capture of WhatsApp messages.
32-
- All this automation using OCI Generative AI and AI Language Services APIs orchestrated by Oracle Integration Cloud (using no-code integration approach)
34+
- All this automation using OCI Generative AI and AI Language Services APIs orchestrated by Oracle Integration Cloud (using a no-code integration approach)
3335
- [Deploy 3rd party generative AI models to OCI](https://docs.oracle.com/en/solutions/deploy-generative-ai-to-oci/index.html#GUID-5567B1F2-4733-4D9C-B4BE-5B5429CA8C02)
3436
- The reference architecture shows generative AI models deployed to an OCI GPU instance for image and text generation.
3537
- [Running 3rd party LLMs on OCI](https://github.com/oracle-devrel/oci-generative-ai)
3638
- Terraform script to start a stable-diffusion, bloom, and dreambooth in compute instance using an Nvidia GPU in OCI.
3739
- [Generative AI in OCI](https://medium.com/oracledevs/generative-ai-in-oci-c0467e1a68f7)
3840
- Blog post explaining how to use generative AI models in OCI.
39-
- [Introduction to Oracle AI Platform](https://go.oracle.com/LP=138234?elqCampaignId=489428&src1=:so:ch:or:dg::::&SC=:so:ch:or:dg::::&pcode=WWMK230822P00010)
40-
- Webinar series, where you will learn about Artificial Intelligence, Oracle AI infrastructure and solutions.
4141
- [Oracle Generative AI Webinar](https://go.oracle.com/LP=138234?elqCampaignId=489428&src1=:so:ch:or:dg::::&SC=:so:ch:or:dg::::&pcode=WWMK230822P00010)
4242
- Deep dive into Oracle Generative AI platform.
4343

4444

4545
# Useful Links
4646

47+
- [Implement Oracle Cloud Infrastructure Generative AI based on Cohere Large Language Model - Blog & Architecture](https://docs.oracle.com/en/solutions/oci-generative-ai-llm/index.html#GUID-76987F35-F646-40CF-9CF2-42724BA57191)
4748
- [Oracle and Generative AI](https://docs.oracle.com/en-us/iaas/Content/Resources/Assets/whitepapers/oracle-and-generative-ai.pdf)
4849
- [Oracle’s generative AI strategy - blog by Greg Pavlik](https://blogs.oracle.com/ai-and-datascience/post/generative-ai-strategy)
4950
- [Oracle to Deliver Powerful and Secure Generative AI Services for Business](https://www.oracle.com/news/announcement/oracle-to-deliver-powerful-and-secure-generative-ai-service-for-business-2023-06-13/)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Generative AI Approach Workshop
2+
3+
## Overview
4+
5+
This Approach workshop is targeted to LOB and Digital Officers to discover and design powerful use cases for Oracle Generative AI.
6+
7+
## Common Challenges
8+
9+
Many clients are currently seeking to identify use cases for Generative AI. This workshop aims to guide participants in understanding the main advantages of Generative AI and the common solution architectures observed in the enterprise sector. More importantly, it will help pinpoint those use cases within your own organization. Furthermore, we'll look more closely at a specific use case, incorporating elements of design thinking. We will then view it from a solution architecture standpoint to identify its essential components.
10+
11+
## Benefits
12+
13+
- Deeper understanding of the value of Generative AI; use cases exploration.
14+
- Persona and Design thinking based to uncover real value.
15+
- High level understanding of target architecture; what are the data sources, how to deal with guardrails and agents.
16+
17+
## More Details
18+
19+
- How to request this workshop: Please reach out to your Oracle Account Team
20+
- Delivered by: Cloud Solution Specialists - AI
21+
Services
22+
- How it is delivered: Zoom & Whiteboarding Tools
23+
- Customer audience: LoB Representatives, Digital
24+
Officers
25+
- Workshop Duration: 2-4 Hours
26+
27+
## AGENDA
28+
29+
1. Introduction & Goals
30+
2. Ideate:
31+
- Persona’s – understand the users & their needs
32+
- Data sources
33+
- UI/channels
34+
3. Solution Design:
35+
- Prompting / Guardrails
36+
- Integrations/Agents
37+
4. Next Steps
38+
39+
# License
40+
41+
Copyright (c) 2023 Oracle and/or its affiliates.
42+
43+
Licensed under the Universal Permissive License (UPL), Version 1.0.
44+
45+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
46+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Copyright (c) 2024 Oracle and/or its affiliates.
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
6+
person obtaining a copy of this software, associated documentation and/or data
7+
(collectively the "Software"), free of charge and under any and all copyright
8+
rights in the Software, and any and all patent rights owned or freely
9+
licensable by each licensor hereunder covering either (i) the unmodified
10+
Software as contributed to or provided by such licensor, or (ii) the Larger
11+
Works (as defined below), to deal in both
12+
13+
(a) the Software, and
14+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
15+
one is included with the Software (each a "Larger Work" to which the Software
16+
is contributed by such licensors),
17+
18+
without restriction, including without limitation the rights to copy, create
19+
derivative works of, display, perform, and distribute the Software and make,
20+
use, sell, offer for sale, import, export, have made, and have sold the
21+
Software and the Larger Work(s), and to sublicense the foregoing rights on
22+
either these or other terms.
23+
24+
This license is subject to the following condition:
25+
The above copyright notice and either this complete permission notice or at
26+
a minimum a reference to the UPL must be included in all copies or
27+
substantial portions of the Software.
28+
29+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35+
SOFTWARE.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
2+
# Creating a RAG (Retrieval-Augmented Generation) with Oracle Generative AI Service in just 21 lines of code
3+
4+
## Introduction
5+
In this article, we'll explore how to create a Retrieval-Augmented Generation (RAG) model using Oracle Gen AI, llama index, Qdrant Vector Database, and SentenceTransformerEmbeddings. This 21-line code will allow you to scrape through web pages, use llama index for indexing, Oracle Generative AI Service for question generation, and Qdrant for vector indexing.
6+
7+
<img src="./RagArchitecture.svg">
8+
</img>
9+
10+
## Limited Availability
11+
12+
Oracle Generative AI Service is in Limited Availability as of today when we are creating this repo.
13+
14+
Customers can easily enter in the LA programs. To test these functionalities you need to enrol in the LA programs and install the proper versions of software libraries.
15+
16+
Code and functionalities can change, as a result of changes and new features
17+
18+
## Prerequisites
19+
Before getting started, make sure you have the following installed:
20+
21+
- Oracle Generative AI Service
22+
- llama index
23+
- qdrant client
24+
- SentenceTransformerEmbeddings
25+
26+
## Setting up the Environment
27+
1. Install the required packages:
28+
```bash
29+
pip install oci==2.112.1+preview.1.1649 llama-index qdrant-client sentence-transformers
30+
```
31+
32+
## Loading data
33+
34+
You need to create a sitemap.xml file where you can specify or list the webpages which you want to include in your RAG.
35+
Here we have used SentenceTransformerEmbeddings to create the embeddings but you can easily use any embeddings model . In the next blog we will show how easily you can use Oracle Generative AI Service embeddings model.
36+
37+
In this example we have used some Oracle documentation pages and created a xml file for the same and have placed it in Oracle object storage.
38+
39+
sitemap used : https://objectstorage.eu-frankfurt-1.oraclecloud.com/n/frpj5kvxryk1/b/thisIsThePlace/o/combined.xml
40+
41+
## Entire code
42+
43+
```bash
44+
from genai_langchain_integration.langchain_oci import OCIGenAI
45+
from llama_index import VectorStoreIndex
46+
from llama_index import ServiceContext
47+
from llama_index.vector_stores.qdrant import QdrantVectorStore
48+
from llama_index.storage.storage_context import StorageContext
49+
from qdrant_client import qdrant_client
50+
from langchain.embeddings import SentenceTransformerEmbeddings
51+
from llama_hub.web.sitemap import SitemapReader
52+
loader = SitemapReader()
53+
documents = loader.load_data(sitemap_url='https://objectstorage.eu-frankfurt-1.oraclecloud.com/n/frpj5kvxryk1/b/thisIsThePlace/o/combined.xml')
54+
client = qdrant_client.QdrantClient(location=":memory:")
55+
embeddings = SentenceTransformerEmbeddings(model_name="all-MiniLM-L6-v2")
56+
llm = OCIGenAI(model_id="cohere.command",service_endpoint="https://generativeai.aiservice.us-chicago-1.oci.oraclecloud.com",compartment_id = "ocid1.tenancy.oc1..aaaaaaaa5hwtrus75rauufcfvtnjnz3mc4xm2bzibbigva2bw4ne7ezkvzha",temperature=0.0)
57+
system_prompt="As a support engineer, your role is to leverage the information in the context provided. Your task is to respond to queries based strictly on the information available in the provided context. Do not create new information under any circumstances. Refrain from repeating yourself. Extract your response solely from the context mentioned above. If the context does not contain relevant information for the question, respond with 'How can I assist you with questions related to the document?"
58+
service_context = ServiceContext.from_defaults(llm=llm, chunk_size=1000, chunk_overlap=100, embed_model=embeddings,system_prompt=system_prompt)
59+
vector_store = QdrantVectorStore(client=client, collection_name="ansh")
60+
storage_context = StorageContext.from_defaults(vector_store=vector_store)
61+
index = VectorStoreIndex.from_documents(documents, storage_context=storage_context, service_context=service_context)
62+
query_engine = index.as_query_engine()
63+
response = query_engine.query("can i use OCI document understanding for files in french ?")
64+
print(response)
65+
```
66+
67+
68+
69+
## Conclusion
70+
71+
In this article, we've covered the process of creating a RAG model using Oracle Generative AI Service, llama index, Qdrant, and SentenceTransformerEmbeddings. Feel free to experiment with different web pages and datasets to enhance the capabilities of your model.
72+
73+
In a future blog post, we'll explore how to integrate Oracle Vector Database and Oracle Gen AI embeddings model into this RAG setup.
74+
75+
Feel free to modify and expand upon this template according to your specific use case and preferences. Good luck with your article!

ai-and-app-modernisation/ai-services/generative-ai-service/rag-genai/RagArchitecture.svg

Lines changed: 4 additions & 0 deletions
Loading

ai-and-app-modernisation/content-management/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Content Management
22

3-
Oracle Content Management (OCM) is Oracle’s strategic Cloud Native Content Hub which is a Managed PaaS Service running on next-generation Oracle Cloud Infrastructure. It covers Digital Asset Management and Video Production(Sauce), Document Collaboration, Capture and Enterprise Content Management, Digital Experience Platform (Low Code and Headless Development) as well as packaged applications within OCM like Video Hub, Email Builder, Sales Accelerator, and more to be added. All under one OCI service with its associated SKU(s).
3+
Oracle's content management offering is Oracle WebCenter which is the center of engagement for business powering exceptional experiences for customers, partners, and employees. Namely, it consists of Oracle WebCenter Content (covering Document Management/Enterprise Content Management, Records Management, Imaging, Capture and Forms Recognition), WebCenter Sites (Digital Experience/Web Content Management platform) & Oracle WebCenter Portal platform for creating intranets, extranets, composite applications, and self-service portals.
44

5-
Oracle's on-premise content management offering is Oracle WebCenter which is the center of engagement for business powering exceptional experiences for customers, partners, and employees. Namely, it consists of Oracle WebCenter Content (covering Document Management/Enterprise Content Management, Records Management, Imaging, Capture and Forms Recognition), WebCenter Sites (Digital Experience/Web Content Management platform) & Oracle WebCenter Portal platform for creating intranets, extranets, composite applications, and self-service portals.
5+
Oracle WebCenter can be hosted either on-premises or on Oracle Cloud Infrastructure.
6+
7+
Oracle Content Management (OCM) was Oracle’s strategic Cloud Native Content Hub; it acted as a Managed PaaS Service running on next-generation Oracle Cloud Infrastructure. The service is still available for existing customers. It covers Digital Asset Management and Video Production(Sauce), Document Collaboration, Capture and Enterprise Content Management, Digital Experience Platform (Low Code and Headless Development) as well as packaged applications within OCM like Video Hub, Email Builder, Sales Accelerator.
68

79
# License
810

ai-and-app-modernisation/content-management/content-management-cloud/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Content Management Cloud
22

3-
Oracle Content Management (OCM) is a cloud-based content hub to drive omni-channel content management and accelerate experience delivery. It offers powerful collaboration, workflow management, and development capabilities to streamline the creation and delivery of content and improve customer and employee engagement.
3+
Oracle Content Management (OCM) is a cloud-based content hub to drive omnichannel content management and accelerate experience delivery. It offers powerful collaboration, workflow management, and development capabilities to streamline the creation and delivery of content and improve customer and employee engagement.
44

5-
It covers Digital Asset Management & Video Production(Sauce), Document Collaboration, Capture & Enterprise Content Management, Digital Experience Platform (Low Code & Headless Development) as well packaged applications within OCM like Video Hub, Email Builder, Sales Accelerator and more to come.
5+
It covers Digital Asset Management and video Production(Sauce), Document Collaboration, Capture and Enterprise Content Management, Digital Experience Platform (Low Code and Headless Development) as well as packaged applications within OCM like Video Hub, Email Builder, Sales Accelerator.
66

77
# Useful Links
88

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# ansible-jenkins
2+
3+
## Getting started
4+
5+
This Terraform code provisions a new OCI instance and installs Jenkins directly through an Ansible playbook.
6+
To optimize and be more cost-efficient, the instance shape is locked to VM.Standard.A1.Flex, but this code
7+
can eventually be modified or forked.
8+
9+
## Features and limitations
10+
* Get quickly started with the latest Jenkins version on OCI
11+
* Manage plugins and the installation through Ansible and Jenkins Configuration as Code
12+
* Tested on Oracle Linux 8
13+
* Instance generated only if it is in a public subnet network
14+
* Port 22 must be opened on the instance, as OCI Resource Manager will need to connect to the instance through SSH
15+
* Jenkins port can't be between 0 and 1024, as those are Linux reserved ports and would require further configurations to be exposed
16+
* To access Jenkins, the instance and Jenkins port must be reachable
17+
* As the instance will be updated, it will take a while during the first run
18+
19+
Although these limitations might not fit every use case, the code can be used as a reference and there are ways to lift them.
20+
21+
[![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle-devrel/technology-engineering/raw/main/app-dev/devops/ansible-jenkins/ansible-jenkins-rm.zip)
22+

0 commit comments

Comments
 (0)