Oracle Generative AI Services
Oracle Generative AI Services
Oracle Generative AI
Services
Hannah Patrick
Jan 25, 2024 • 7 min read
Overview
The Oracle Generative AI Services is a new fully managed service
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 1 of 17
:
The Oracle Generative AI Services is a new fully managed service
where you can use and customise pre-trained large language
models (LLMs) for text generation. It is now available on Oracle
Cloud Infrastructure (OCI) in the US Midwest (Chicago) Region.
You can edit a range of model parameters and test the models
with a variety of prompts. You can then create generated Java or
Python code that you can extract and integrate into other
applications.
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 2 of 17
:
used to access a custom model you have created. The custom
model will then be listed from within the playground, or you can
use a custom model in an application via the created endpoint.
Pre-trained Models
There are several pre-trained LLMs that you can use from within
the playground or fine-tune for your needs. These models fall into
several categories:
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 3 of 17
:
Playground
To use the Generative AI Services from the console go
to Analytics and AI → Generative AI (Under AI Services).
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 4 of 17
:
Within the playground, you can select the model and type of
model you wish to use from the dropdown. Obviously, this will
depend on your use case.
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 5 of 17
:
partner Cohere.
Once you have selected a model you can then supply the model
with prompts.
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 6 of 17
:
rewording text, expanding bullet points to paragraphs, and even
writing SQL statements with enough supplied information.
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 7 of 17
:
While using the text generation models you can vary:
Top p - This can be used to ensure that only the most likely
tokens are considered for each step. p is the minimum percentage
to consider for the next token, i.e. the default of 0.75 will exclude
the least likely 25 percent for the next token.
Top k - This is another way to limit the tokens that can be chosen
at each step, this limits the next chosen token to the top k most
likely. A higher k has more tokens to choose from and will
generate more random outputs. Setting to 0, which is the default,
does not use this method.
Text Summarisation
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 9 of 17
:
Length - Choose between short, medium and long
Text Embedding
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 10 of 17
:
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 11 of 17
:
The text embedding models will let you decide whether to
truncate the input, currently, you can add 96 sentences or a 96
line file.
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 12 of 17
:
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 13 of 17
:
Customising models
If the LLMs are not producing the desired responses, even when
varying the model parameters, then you might want to consider
fine-tuning a model.
It should be noted that the model will only know specific aspects
or information about you business if you supply it examples in
the training data.
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 14 of 17
:
It would be very cumbersome to fine-tune a LLM on a large
quantity of your business documentation, for example to enable
business and domain specific question-answering capabilities. If
you are looking for a model with this kind of functionality that
includes information retrieval as well as generative capabilities,
then you will be interested in RAG models. These kinds of models
combine a search/ retrieval mechanism, which fetches
information relevant to a supplied prompt, and uses this
information to generate a human like or summary response. This
makes RAG models ideal for answering business specific
questions, summarising internal documents, and other tasks
where accessing your business specific local data is crucial.
We have a blog post coming out about RAG models very soon.
0 Comments
1 Login
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 15 of 17
:
LOG IN WITH OR SIGN UP WITH DISQUS ?
Name
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 16 of 17
:
Detecting & Masking Personal Identifiable Information:
Using OCI Language Model & Oracle Analytics
Why is personal information identification a big deal? Personal Information
Identification (PII) is crucial for maintaining privacy, complying with regulations,
mitigating risks, ensuring data quality, and enabling trust between organisations an…
their customers. In recent years, numerous organisations worldwide have
Ambili Thottathil
encountered legal• issues
Jul 17, 2024 due to breaches of PII. Notable incidents
7 min read
https://www.rittmanmead.com/blog/2024/01/oracle-generative-ai-services/ 7/26/24, 8 32 PM
Page 17 of 17
: