Skip to content

Commit d079908

Browse files
review dates and file-based asset folder clean up
1 parent 0fdbb95 commit d079908

File tree

47 files changed

+1137
-1005
lines changed

Some content is hidden

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

47 files changed

+1137
-1005
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Oracle Cloud Infrastructure (OCI) AI Services is a collection of services with prebuilt machine learning models that make it easier for developers to apply AI to applications and business operations. The models can be custom-trained for more accurate business results. Teams within an organization can reuse the models, datasets, and data labels across services. OCI AI Services makes it possible for developers to easily add machine learning to apps without slowing down application development.
44

5+
Reviewed: 30.01.2024
6+
57
# Table of Contents
68

79
- [Useful Links](#useful-links)

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Document Understanding
22

33
Oracle Cloud Infrastructure (OCI) Document Understanding is an AI service that enables developers to extract text, tables, and other key data from document files through APIs and command-line interface tools. With OCI Document Understanding, you can automate tedious business processing tasks with prebuilt AI models and customize document extraction to fit your industry-specific needs.
4-
4+
5+
Reviewed: 30.01.2024
6+
7+
58
# Table of Contents
69

710
- [Team Publications](#team-publications)
@@ -40,11 +43,11 @@ Oracle Cloud Infrastructure (OCI) Document Understanding is an AI service that e
4043
- [Document Understanding Oracle.com Page](https://www.oracle.com/artificial-intelligence/document-understanding/)
4144
- [Document Understanding Documentation](https://docs.oracle.com/iaas/document-understanding/document-understanding/using/home.htm)
4245

43-
# LiveLabs and Workshops
46+
## LiveLabs and Workshops
4447

4548
- [Introduction to OCI Document Understanding](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3585)
4649

47-
# Customer Stories
50+
## Customer Stories
4851

4952
- [Trailcon Leasing: Low-code and AI for Automating Invoice Processing & Approval Workflow](https://www.youtube.com/watch?v=TsbNU6xdQPw)
5053

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

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
OCI Language is a cloud-based AI service for performing sophisticated text analysis at scale. Use this service to build intelligent applications by leveraging REST APIs and SDKs to process unstructured text for sentiment analysis, entity recognition, translation, and more.
44

5+
Reviewed: 30.01.2024
6+
57
# Table of Contents
68

79
- [AI Language](#ai-language)
@@ -18,7 +20,29 @@ OCI Language is a cloud-based AI service for performing sophisticated text analy
1820

1921
- [Saving the Bees using AI: One Positive Entity at a Time](https://www.linkedin.com/pulse/saving-bees-using-ai-one-positive-entity-time-ismail-syed/)
2022

21-
## Reusable Assets
23+
## Architecture Center
24+
25+
- [Use OCI Language for customer feedback analysis](https://docs.oracle.com/en/solutions/oci-ai-language/index.html#GUID-33D63770-1F4D-4AAE-BC6D-D42C62D10CC2)
26+
27+
# Useful Links
28+
29+
- [Oracle AI Language on oracle.com](https://www.oracle.com/uk/artificial-intelligence/language/)
30+
- [Oracle AI Language documentation](https://docs.oracle.com/en-us/iaas/language/using/language.htm)
31+
- [Oracle AI Language blog announcement](https://blogs.oracle.com/ai-and-datascience/post/announcing-oci-language)
32+
33+
34+
## LiveLabs and Workshops
35+
36+
- [Get started with Oracle Cloud Infrastructure Language](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=887&clear=RR,180&session=5298742340912)
37+
- [Perform Sentiment Analysis with OCI AI Language Service and OAC](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3214&clear=RR,180&session=5298742340912)
38+
- [Deliver Immersive Conversational User Experiences with OCI AI Services](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3452&clear=RR,180&session=5298742340912)
39+
- [Build applications with Oracle’s AI services](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3674&clear=RR,180&session=5298742340912)
40+
41+
## Customer Stories
42+
43+
- [Aon improves customer experience with OCI Language service](https://www.oracle.com/customers/aon-case-study/)
44+
45+
# Reusable Assets
2246

2347
- [OCI AI Language Service introduction video](https://www.youtube.com/watch?v=-t6jje8SRXU)
2448
- [Real-Time Outlook Email Analysis with Oracle Integration & OCI AI Language](https://youtu.be/qzyzdAZjUU0?si=moC-O47m7L1nrhqx)
@@ -41,32 +65,10 @@ OCI Language is a cloud-based AI service for performing sophisticated text analy
4165
- [AI Language demo](https://youtu.be/w8vFTKp4JME)
4266
- [AI Language - Hotel Reviews (AI Language, OAC)](https://youtu.be/pmf90oUZGH4)
4367

44-
# Architecture Center
45-
46-
- [Use OCI Language for customer feedback analysis](https://docs.oracle.com/en/solutions/oci-ai-language/index.html#GUID-33D63770-1F4D-4AAE-BC6D-D42C62D10CC2)
47-
48-
# Useful Links
49-
50-
- [Oracle AI Language on oracle.com](https://www.oracle.com/uk/artificial-intelligence/language/)
51-
- [Oracle AI Language documentation](https://docs.oracle.com/en-us/iaas/language/using/language.htm)
52-
- [Oracle AI Language blog announcement](https://blogs.oracle.com/ai-and-datascience/post/announcing-oci-language)
53-
54-
55-
# LiveLabs and Workshops
56-
57-
- [Get started with Oracle Cloud Infrastructure Language](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=887&clear=RR,180&session=5298742340912)
58-
- [Perform Sentiment Analysis with OCI AI Language Service and OAC](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3214&clear=RR,180&session=5298742340912)
59-
- [Deliver Immersive Conversational User Experiences with OCI AI Services](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3452&clear=RR,180&session=5298742340912)
60-
- [Build applications with Oracle’s AI services](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3674&clear=RR,180&session=5298742340912)
61-
62-
# Customer Stories
63-
64-
- [Aon improves customer experience with OCI Language service](https://www.oracle.com/customers/aon-case-study/)
65-
6668
# License
6769

6870
Copyright (c) 2024 Oracle and/or its affiliates.
6971

7072
Licensed under the Universal Permissive License (UPL), Version 1.0.
7173

72-
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/folder-structure/LICENSE) for more details.
74+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
OCI Speech is an AI service that applies automatic speech recognition technology to transform audio-based content into text. Developers can easily make API calls to integrate OCI Speech’s pre-trained models into their applications. OCI Speech can be used for accurate, text-normalized, time-stamped transcription via the console and REST APIs as well as command-line interfaces or SDKs. You can also use OCI Speech in an OCI Data Science notebook session. With OCI Speech, you can filter profanities, get confidence scores for both single words and complete transcriptions, and more.
44

5+
Reviewed: 30.01.2024
6+
57
# Table of Contents
68

79
- [AI Speech](#ai-speech)
@@ -20,11 +22,11 @@ OCI Speech is an AI service that applies automatic speech recognition technology
2022
- [Demos built using OCI Python SDK](https://github.com/luigisaetta/oci-speech-demos)
2123
- [AI Speech console demo](https://youtu.be/EWBSoSLNph8)
2224

23-
# Architecture Center
25+
## Architecture Center
2426

2527
- [Use OCI Speech to transcribe natural language](https://docs.oracle.com/en/solutions/ai-speech/index.html)
2628

27-
# LiveLabs and Workshops
29+
## LiveLabs and Workshops
2830

2931
- [Introduction to OCI Speech](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3135&clear=RR,180&session=106771425893627)
3032

@@ -42,4 +44,4 @@ Copyright (c) 2024 Oracle and/or its affiliates.
4244

4345
Licensed under the Universal Permissive License (UPL), Version 1.0.
4446

45-
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/folder-structure/LICENSE) for more details.
47+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.

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

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
OCI Vision is an AI service for performing deep-learning–based image analysis at scale. With prebuilt models available out of the box, developers can easily build image recognition and text recognition into their applications without machine learning (ML) expertise. For industry-specific use cases, developers can automatically train custom vision models with their own data. These models can be used to detect visual anomalies in manufacturing, organize digital media assets, and tag items in images to count products or shipments.
44

5+
Reviewed: 30.01.2024
6+
57
# Table of Contents
68

79
- [AI Vision](#ai-vision)
@@ -20,29 +22,16 @@ OCI Vision is an AI service for performing deep-learning–based image analysis
2022
- [Build a real-time object identifier using OCI Vision and Oracle Autonomous Database](https://docs.oracle.com/en/solutions/realtime-ocivision-object-identification/index.html#GUID-A875FB7D-29E3-4FBF-AED5-C0CF43F71469)
2123
- The reference architecture describes how you can integrate an OCI Vision-trained model with a front-end web app to perform real-time object identification with a mobile phone camera.
2224

23-
## Reusable Assets Overview
24-
25-
- [OCI image classification using data labeling and vision service](https://github.com/carlgira/oci-image-classification)
26-
- [OCI object detection using data labeling and vision service](https://github.com/carlgira/oci-object-detection)
27-
- [Perform image recognition with Oracle Cloud Infrastructure OCI Vision](https://youtu.be/G11INIVtlMY?si=ixMoLE2jSq7f_Iyi)
28-
- [AI vision web client](https://github.com/oracle-devrel/oci-tf-vision-web-client)
29-
- Terraform script that will create a set of resources on OCI to create a web app to test an existing vision model.
30-
- [Vision Image Classification demo](https://youtu.be/9_NSumsQcMs)
31-
- [Vision Object Detection demo](https://youtu.be/iiuluuOlAKc)
32-
- [AI Vision Car parking utilisation demo (OCI AI Vision, OAC)](https://youtu.be/VlZDaUC2Jus)
33-
- [Cloud Customer Connect - How to Train Your Oracle AI Cloud Service Model](https://community.oracle.com/customerconnect/events/604740-oci-how-to-train-your-oracle-ai-cloud-service-model)
34-
- In this session, we demonstrate how you can use OCI AI services, to create custom models using the data labeling, vision and document understanding service.
35-
3625
# Useful Links
3726

3827
- [Oracle AI Vision on oracle.com](https://www.oracle.com/uk/artificial-intelligence/vision/)
3928
- [Oracle AI Vision documentation](https://docs.oracle.com/en-us/iaas/vision/vision/using/home.htm)
4029

41-
# Architecture Center
30+
## Architecture Center
4231

4332
- [Build a real-time object identifier using OCI Vision and Oracle Autonomous Database](https://docs.oracle.com/en/solutions/realtime-ocivision-object-identification/index.html)
4433

45-
# LiveLabs and Workshops
34+
## LiveLabs and Workshops
4635

4736
- [LiveLabs - AI Vision introduction](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=931&clear=RR,180&session=101189893786132)
4837
- Introduction: OCI Vision
@@ -62,6 +51,18 @@ OCI Vision is an AI service for performing deep-learning–based image analysis
6251
- Lab 7: Processing the entire video
6352
- [How to Use AI Vision and Drones for Inventory Management](https://go.oracle.com/LP=135420)
6453

54+
# Reusable Assets Overview
55+
56+
- [OCI image classification using data labeling and vision service](https://github.com/carlgira/oci-image-classification)
57+
- [OCI object detection using data labeling and vision service](https://github.com/carlgira/oci-object-detection)
58+
- [Perform image recognition with Oracle Cloud Infrastructure OCI Vision](https://youtu.be/G11INIVtlMY?si=ixMoLE2jSq7f_Iyi)
59+
- [AI vision web client](https://github.com/oracle-devrel/oci-tf-vision-web-client)
60+
- Terraform script that will create a set of resources on OCI to create a web app to test an existing vision model.
61+
- [Vision Image Classification demo](https://youtu.be/9_NSumsQcMs)
62+
- [Vision Object Detection demo](https://youtu.be/iiuluuOlAKc)
63+
- [AI Vision Car parking utilisation demo (OCI AI Vision, OAC)](https://youtu.be/VlZDaUC2Jus)
64+
- [Cloud Customer Connect - How to Train Your Oracle AI Cloud Service Model](https://community.oracle.com/customerconnect/events/604740-oci-how-to-train-your-oracle-ai-cloud-service-model)
65+
- In this session, we demonstrate how you can use OCI AI services, to create custom models using the data labeling, vision and document understanding service.
6566

6667

6768
# License

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,7 @@ scientists and developers who want complete control to build and deploy AI
77
models of any kind, and independent software vendors (ISVs) who want the
88
most performant and cost-effective platform to host their AI services.
99

10-
# Table of Contents
11-
12-
- [Generative AI service](#generative-ai-service)
13-
- [Table of Contents](#table-of-contents)
14-
- [Team Publications](#team-publications)
15-
- [Architecture Center](#architecture-center)
16-
- [Medium](#medium)
17-
- [GitHub](#github)
18-
- [Useful Links](#useful-links)
19-
- [Reusable Assets Overview](#reusable-assets-overview)
20-
- [License](#license)
10+
Reviewed: 30.01.2024
2111

2212
# Team Publications
2313

Lines changed: 21 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,21 @@
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!
1+
# Retrieval-Augmented Generation (RAG)
2+
3+
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.
4+
5+
Reviewed: 30.01.2024
6+
7+
# When to use this asset?
8+
9+
See the README document in the /files folder.
10+
11+
# How to use this asset?
12+
13+
See the README document in the /files folder.
14+
15+
# License
16+
17+
Copyright (c) 2024 Oracle and/or its affiliates.
18+
19+
Licensed under the Universal Permissive License (UPL), Version 1.0.
20+
21+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.

0 commit comments

Comments
 (0)