No Code Retrieval-Augmented Generation (RAG) with OCI Generative AI Agents
Rohit Rahi
Vice President, Global Oracle Cloud Infrastructure Delivery, Oracle University | ex-AWS | ex-Azure
For enterprise AI models to be truly useful, they often need access to background knowledge that they wouldn't have on their own. By allowing the model to search a background knowledge base and use that information to form responses, the accuracy and usefulness of the model can improve significantly. This method is known as Retrieval-Augmented Generation (RAG).
RAG has two key components:
Anyone who has built a RAG system will tell you that it's not a trivial process. Key steps include:
Building a RAG system demands significant coding, knowledge of APIs, and extensive testing for retrieval accuracy.
But with the OCI Generative AI Agents Service , all of this complexity is abstracted away. This new service offers a pure No-code approach to RAG, allowing you to build a system in just three simple steps.
A No-Code RAG System in Three Easy Steps
Here's how easy it is to get started with OCI Generative AI Agents:
Step 1: Create a Knowledge Base
To test the service, I uploaded transcripts from our OCI courses—covering topics like DevOps, Multicloud, Security, Data Science, Architecture, and Development—into an OCI Object Storage bucket. These transcripts span hundreds of pages and cover the depth and breadth of OCI services.
Step 2: Create an Agent
Next, I created an agent for the knowledge base. This process takes some time, as the agent needs to ingest the data (adding files from OCI Object Storage to the data source).
Step 3: Test Your Agent
Once the agent is ready, you can test its ability to generate insights and answer questions based on your data. I tested the chatbot across several levels:
Knowledge Recall: It performed well in recalling basic information. For example, I asked about the instructors for a specific course, and it returned the correct answer.
领英推荐
Understanding Concepts: I asked how to access OCI Object Storage without traversing the public internet, and it correctly provided information about OCI Storage Gateways and the Oracle Service Network. So far, so good. But could it apply concepts in more complex scenarios?
Applying Concepts: To push the limits, I presented a real-life troubleshooting question:
When trying to encrypt plaintext using the Command Line Interface (CLI), a developer gets a "Service Error" message. Here's the command they used:
oci kms crypto encrypt --key-id ocid1.key.oc1.iad.bbptfrr5aaeuk.abuwcljt32arg6e6xlswgluvc52lnrtk62jq7jenfejfxlhb46nkav3zhsta --plaintext foobar --endpoint https://bbptfrr5aaeuk-management.kms.us-ashburn-1.oraclecloud.com
What is the most likely reason for the error?
A. The plaintext needs to be in JSON format.
B. The developer forgot to specify the region.
C. The developer has the wrong endpoint.
D. The developer should pass the key version OCID instead of the key OCID.
OCI Generative AI Agents response:
Our courses typically don’t cover OCI CLI commands in depth, so the agent had to find the most relevant chunk of text, based on semantic similarity. Impressively, it not only gave the correct answer (the wrong endpoint was used), but it also provided a citation from a lesson on OCI Vault management and cryptographic operations. This is a perfect demonstration of how semantic similarity outperforms simple keyword searches.
Final Thoughts
While I haven’t fully tested the service, I’m very impressed with the retrieval accuracy of OCI Generative AI Agents. It’s worth noting that this service also integrates with Oracle Database 23ai vector search for even more precise and complex queries.
For users with limited technical expertise, this is a fantastic way to build and benefit from a RAG system—without writing a single line of code. We are truly democratizing RAG!
Give it a try and share your experience.
Thanks for reading!
CEO - CustomGPT.ai
1 个月Good work -- and nice to see Oracle democratizing RAG -- but to be honest, can you please confirm the definition of "limited technical expertise" -- to be truly democratic, the lady in the support department needs to be able to build RAG agents without IT help .. is that possible?
AI Engineer| LLM Specialist| Python Developer|Tech Blogger
1 个月Just discovered #RAGatouille – it's like having your own sous-chef for AI! Streamlining NLP tasks with ease, from Q&A to doc retrieval. https://www.artificialintelligenceupdate.com/retrieval-augmented-generation-ragatouille/riju/ #learnmore #AI&U
AI Engineer| LLM Specialist| Python Developer|Tech Blogger
1 个月Excited about Retrieval Augmented Generation? Meet RAGatouille! It simplifies training AI models for NLP tasks like never before. Could this be a game-changer for your machine learning projects? #ML https://www.artificialintelligenceupdate.com/retrieval-augmented-generation-ragatouille/riju/ #learnmore #AI&U
oracle database performance tuning
1 个月Very helpful