Skip to content

Commit 545ac3c

Browse files
Merge branch 'main' into RobertoRaspatella-patch-1
2 parents a11ecf1 + 852eff6 commit 545ac3c

File tree

134 files changed

+12527
-273
lines changed

Some content is hidden

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

134 files changed

+12527
-273
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ terraform.rc
4444
# Exclude cached Python binary files
4545
*.pyc
4646
__pycache__
47+
48+
desktop.ini
49+

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"githubPullRequests.ignoredPullRequestBranches": [
3+
"main"
4+
]
5+
}

ai/README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
1-
# AI Services
1+
# OCI Generative AI and AI Services
22

3-
Oracle Cloud Infrastructure (OCI) AI Services, Generative AI Services and Generative AI Agents are a collection of services with prebuilt machine learning and Generative AI models that make it easy for developers to apply AI to applications and business processes. The models can be custom-trained (or fine-tuned) for more accurate business results. Teams within an organization can reuse the models, datasets, and data labels across services. OCI AI makes it possible for developers to easily add AI to applications without slowing down application development.
3+
Oracle Cloud Infrastructure (OCI) [Generative AI Service](https://docs.oracle.com/en-us/iaas/Content/generative-ai/overview.htm), [Generative AI Agents](https://docs.oracle.com/en-us/iaas/Content/generative-ai-agents/overview.htm) and [AI Services](https://www.oracle.com/uk/artificial-intelligence/ai-services/) are a collection of services with prebuilt machine learning and Generative AI models that make it easy for developers to apply AI to applications and business processes. The models can be custom-trained (or fine-tuned) for more accurate business results. Teams within an organization can reuse the models, datasets, and data labels across services. OCI AI makes it possible for developers to easily add AI to applications without slowing down application development.
44

5-
Reviewed: 03.06.2025
5+
Reviewed: 21.08.2025
66

77

88
# Useful Links
99

1010
## Examples and hands-on workshops
1111
- [AI Solutions Hub](https://www.oracle.com/artificial-intelligence/solutions/)
1212
- [Oracle LiveLabs](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/home)
13+
- [This repository](https://github.com/oracle-devrel/technology-engineering/tree/main/ai) and [Oracle-samples repository](https://github.com/oracle-samples/oci-data-science-ai-samples)
14+
- [Oracle Developer Coaching channel on Youtube](https://www.youtube.com/@oracledevs)
1315

1416
## Discover Oracle AI
15-
- [Oracle AI Services on Oracle.com](https://www.oracle.com/artificial-intelligence/ai-services/)
17+
- [Oracle AI on Oracle.com](https://www.oracle.com/artificial-intelligence/)
1618
- [Oracle Generative AI on Oracle.com](https://www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/)
17-
- [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)
19+
- [Oracle AI First Principles - Youtube series](https://www.youtube.com/watch?v=ZCX-gT1q0ZQ)
1820
- [Oracle’s Generative AI strategy](https://blogs.oracle.com/ai-and-datascience/post/generative-ai-strategy)
19-
- [AI use cases - 10 examples](https://www.oracle.com/a/ocom/docs/gated/ai-use-cases-ebook.pdf)
20-
- [Availability of AI Services across OCI datacenters](https://www.oracle.com/uk/cloud/public-cloud-regions/service-availability/#commercial)
21+
- [Oracle AI & Data Science Blog](https://blogs.oracle.com/ai-and-datascience/)
22+
- [AI use cases - 11 examples](https://www.oracle.com/a/ocom/docs/gated/ai-use-cases-ebook.pdf)
23+
- [Availability of AI Services across OCI datacenters](https://www.oracle.com/cloud/distributed-cloud/#service-availability)
2124

2225
## Learning paths and certifications
2326
- [OCI AI Foundations Certification](https://mylearn.oracle.com/ou/learning-path/become-an-oci-ai-foundations-associate-2024/140164)

ai/gen-ai-agents/Document Understanding MCP AI Agent/files/package-lock.json

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ai/gen-ai-agents/Document Understanding MCP AI Agent/files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"framer-motion": "^12.9.4",
1919
"lucide-react": "^0.511.0",
2020
"markdown-to-jsx": "^7.7.6",
21-
"next": "15.4.2",
21+
"next": "15.5.2",
2222
"react": "^19.0.0",
2323
"react-dom": "^19.0.0",
2424
"react-markdown": "^10.1.0"

ai/gen-ai-agents/assistant-secretary-agent/files/local_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ traitlets==5.14.3
9494
typing-inspect==0.9.0
9595
typing_extensions==4.12.2
9696
tzdata==2024.2
97-
urllib3==2.3.0
97+
urllib3==2.5.0
9898
wcwidth==0.2.13
9999
yarl==1.18.0
100100
zstandard==0.23.0

ai/gen-ai-agents/assistant-secretary-agent/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
An AI-powered assistant that routes user input across tools like Gmail, Google Calendar, Weather API, Calculator, and Oracle’s Generative AI services for smart, dynamic task automation.
44

5-
Reviewed: 23.04.2025
5+
Reviewed: 23.08.2025
66

77
# When to use this asset?
88

ai/gen-ai-agents/csvpdf_analyzer/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CSV Analyzer Agent is an AI-Agent assistant designed to automate document unders
44
It intelligently routes user questions through a multi-step process that includes PDF information extraction, CSV data analysis, code generation, execution, and natural language explanation.
55
It supports dynamic workflows like PDF parsing, CSV querying, and context-aware reporting through a Streamlit UI.
66

7-
Reviewed: April 18, 2025
7+
Reviewed: August 18, 2025
88

99
# When to use this asset?
1010

ai/gen-ai-agents/custom_rag_agent/agent_state.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ class State(TypedDict):
4040
standalone_question: str = ""
4141

4242
# similarity_search
43+
# 30/06: modified, now they're a dict with
44+
# page_content and metadata
45+
# populated with docs_serializable (utils.py)
4346
retriever_docs: Optional[list] = []
4447
# reranker
4548
reranker_docs: Optional[list] = []

ai/gen-ai-agents/custom_rag_agent/answer_generator.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
File name: answer_generator.py
33
Author: Luigi Saetta
4-
Date last modified: 2025-03-31
4+
Date last modified: 2025-04-02
55
Python Version: 3.11
66
77
Description:
@@ -67,10 +67,8 @@ def build_context_for_llm(self, docs: list):
6767
6868
docs: list[Documents]
6969
"""
70-
_context = ""
71-
72-
for doc in docs:
73-
_context += doc.page_content + "\n\n"
70+
# more Pythonic
71+
_context = "\n\n".join(doc["page_content"] for doc in docs)
7472

7573
return _context
7674

@@ -79,7 +77,7 @@ def invoke(self, input: State, config=None, **kwargs):
7977
"""
8078
Generate the final answer
8179
"""
82-
# get the config
80+
# get the model_id from config
8381
model_id = config["configurable"]["model_id"]
8482

8583
if config["configurable"]["main_language"] in self.dict_languages:
@@ -102,6 +100,7 @@ def invoke(self, input: State, config=None, **kwargs):
102100
try:
103101
llm = get_llm(model_id=model_id)
104102

103+
# docs are returned from the reranker
105104
_context = self.build_context_for_llm(input["reranker_docs"])
106105

107106
system_prompt = PromptTemplate(

0 commit comments

Comments
 (0)