<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Blake Hendricks on Medium]]></title>
        <description><![CDATA[Stories by Blake Hendricks on Medium]]></description>
        <link>https://medium.com/@bhenndricks?source=rss-59bbcf570591------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*epG3LUHvSYAxb4B-BGGKpQ.jpeg</url>
            <title>Stories by Blake Hendricks on Medium</title>
            <link>https://medium.com/@bhenndricks?source=rss-59bbcf570591------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 17:08:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhenndricks/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Transfer Data from Oracle Cloud Storage to Autonomous Database]]></title>
            <link>https://medium.com/@bhenndricks/secure-access-to-oracle-buckets-in-object-storage-a-step-by-step-guide-32f3242f35e2?source=rss-59bbcf570591------2</link>
            <guid isPermaLink="false">https://medium.com/p/32f3242f35e2</guid>
            <category><![CDATA[cloud-storage]]></category>
            <dc:creator><![CDATA[Blake Hendricks]]></dc:creator>
            <pubDate>Mon, 24 Jun 2024 19:55:27 GMT</pubDate>
            <atom:updated>2024-06-26T19:36:10.976Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>This guide demonstrates how to use User Access and Secret Keys to securely access and authenticate with your Oracle Cloud Bucket in Object Storage. These steps are crucial for setting up programmatic access to your cloud resources, and data, and enabling applications to interact with Object Storage securely.</p><h3>Prerequisites</h3><p>Before you begin, ensure you have:</p><ul><li>An active Oracle Cloud account</li><li>Administrative access to your Oracle Cloud tenancy</li><li>A basic understanding of Oracle Cloud Infrastructure (OCI) concepts</li></ul><h3>Step 1: Access Your User Profile</h3><ol><li>Log in to your Oracle Cloud account.</li><li>Navigate to the profile icon on the top right of the page</li><li>Select My Profile</li></ol><h3>Step 2: Generate Secret Key</h3><p>1. After accessing the user, you’ll be redirected to the user details page. If not, click on the newly created user from the Users list.</p><p>2. Scroll down to the “Resources” section on the left side of the screen.</p><p>3. Click on “Secret Keys” to expand the section.</p><p>4. Click the “Generate Secret Key” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*PK_Lqczh_m7I3xeDXf13zg.png" /></figure><p>5. In the dialog box that appears:</p><p>- Enter a description for your secret key (optional but recommended)</p><p>- Click “Generate Secret Key”</p><p>6. A new dialog will appear showing your Access Key and Secret Key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/0*WdF1rPY-z0NZQmly.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*APr4jvIrGXpORpBeVQPQjQ.png" /></figure><p>- **Important:** Copy both the Access Key and Secret Key immediately and store them securely. The Secret Key will not be displayed again.</p><p>7. Click “Close” once you’ve safely stored your keys.</p><h3>Step 3: Note Your Object Storage Bucket Information</h3><ol><li>Navigate to the Oracle Cloud Console home page.</li><li>Go to the “Storage” section and click on “Object Storage &amp; Archive Storage”.</li><li>Find the bucket you want to access and click on its name.</li><li>On the bucket details page, note down the following information:</li></ol><ul><li>Bucket Name</li><li>Namespace</li><li>Region</li></ul><h3>Step 4: Configure Your Application</h3><p>Now that you have your Access Key, Secret Key, and Bucket information, you can use these to configure your application for accessing the Oracle Object Storage:</p><ol><li>Use the Access Key as your username.</li><li>Use the Secret Key as your password.</li><li>Use the Bucket Name, Namespace, and Region when constructing your Object Storage URL or in your SDK configuration.</li></ol><p>For example, if you have an Autonomous Database instance you can go to Database actions and establish connectivity using this code, or you can do this externally if you have an application that needs connectivity to Oracle Cloud Storage.</p><p>Replace `&lt;your_access_key&gt;` and `&lt;your_secret_key&gt;` with your actual Oracle Object Storage access key and secret key.</p><pre>BEGIN<br>DBMS_CLOUD.CREATE_CREDENTIAL(<br>credential_name =&gt; &#39;OBJ_STORE_NAME&#39;,<br>username =&gt; &#39;&lt;your_access_key&gt;&#39;,<br>password =&gt; &#39;&lt;your_secret_key&gt;&#39;<br>);<br>END;<br>/</pre><h3>2. Grant Necessary Privileges</h3><p>Ensure your database user has the necessary privileges to use DBMS_CLOUD procedures.</p><pre>GRANT EXECUTE ON DBMS_CLOUD TO &lt;your_database_user&gt;;</pre><p>Replace `&lt;your_database_user&gt;` with your actual database user.</p><h3>3. Download Files Using DBMS_CLOUD.GET_OBJECTS</h3><p>Now, use the DBMS_CLOUD.GET_OBJECTS procedure to download files from your Oracle Object Storage bucket into Oracle ADB.</p><pre>BEGIN<br>DBMS_CLOUD.GET_OBJECTS(<br>credential_name =&gt; &#39;OBJ_STORE_CRED&#39;,<br>object_uri =&gt; &#39;https://objectstorage.&lt;region&gt;.oraclecloud.com/n/&lt;namespace&gt;/b/&lt;bucket&gt;/o/&lt;file&gt;&#39;,<br>directory_name =&gt; &#39;DATA_PUMP_DIR&#39;,<br>file_name =&gt; &#39;&lt;file_name_in_adb&gt;&#39;<br>);<br>END;<br>/</pre><p>Replace the placeholders as follows:</p><p>- `&lt;region&gt;`: Your Oracle Cloud region.</p><p>- `&lt;namespace&gt;`: Your Oracle Cloud Object Storage namespace.</p><p>- `&lt;bucket&gt;`: The name of your Object Storage bucket.</p><p>- `&lt;file&gt;`: The name of the file in your Object Storage bucket.</p><p>- `&lt;file_name_in_adb&gt;`: The name you want to give the file in Oracle ADB.</p><p>For example, if your object URI is <a href="https://objectstorage.us-ashburn-1.oraclecloud.com/n/my_namespace/b/my_bucket/o/my_file.csv,">https://objectstorage.us-ashburn-1.oraclecloud.com/n/my_namespace/b/my_bucket/o/my_file.csv,</a> and you want to store it in ADB as my_file.csv, the command will look like this:</p><pre>BEGIN<br>DBMS_CLOUD.GET_OBJECTS(<br>credential_name =&gt; &#39;OBJ_STORE_CRED&#39;,<br>object_uri =&gt; &#39;https://objectstorage.us-ashburn-1.oraclecloud.com/n/my_namespace/b/my_bucket/o/my_file.csv&#39;,<br>directory_name =&gt; &#39;DATA_PUMP_DIR&#39;,<br>file_name =&gt; &#39;my_file.csv&#39;<br>);<br>END;<br>/</pre><h3>4. Verify the File in Oracle ADB</h3><p>After downloading the file, you can verify its existence in Oracle ADB by listing the contents of the directory.</p><pre>SELECT * FROM TABLE(DBMS_CLOUD.LIST_FILES(&#39;DATA_PUMP_DIR&#39;));</pre><p>This query will show you the files present in the specified directory, ensuring that your file has been successfully downloaded.</p><h3>Important Notes:</h3><ul><li>Never share your Secret Key. It provides full access to your account’s resources.</li><li>If you suspect your key has been compromised, return to the Secret Keys section and delete the compromised key, then generate a new one.</li><li>Regularly rotate your secret keys as a security best practice.</li><li>Ensure your application securely stores these credentials, never hardcoding them directly into your source code.</li></ul><p>By following these steps, you’ll be able to securely access and authenticate with your Oracle Bucket in Object Storage using User Access and Secret Keys.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32f3242f35e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create an Autonomous Database with Oracle Cloud]]></title>
            <link>https://medium.com/@bhenndricks/how-to-create-an-oracle-autonomous-database-c12d9a05096c?source=rss-59bbcf570591------2</link>
            <guid isPermaLink="false">https://medium.com/p/c12d9a05096c</guid>
            <category><![CDATA[cloud-storage]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Blake Hendricks]]></dc:creator>
            <pubDate>Mon, 24 Jun 2024 16:35:25 GMT</pubDate>
            <atom:updated>2024-06-24T16:36:50.879Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog, you will learn how to set up a comprehensive data warehousing solution that adapts to your technical needs and analytical demands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*zUmuyWcBURASii2G.png" /></figure><h4><strong>Task 1: Choose Autonomous Database from the OCI services menu</strong></h4><p>1. Access the Navigation menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/0*dBZXLA0aF3b_wjh-.png" /></figure><p>2. In the Oracle Database section, select Autonomous Data Warehouse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/0*ZlJk7UOGPVctRKG7.png" /></figure><p>3. Utilize the List scope and Filters options on the left side to manage the display of Autonomous Databases. This feature is particularly helpful when overseeing multiple Autonomous Databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fV7uVUyAHph6nZ0O.png" /></figure><p>- Compartment: Organize your OCI resources by selecting the appropriate compartment for your new Autonomous Database.<br> — Workload Type: Refine the Autonomous Database list by choosing your preferred workload type.<br> — View all databases by selecting the All option<br> — State: Browse databases based on their status, such as available, stopped, or terminated.<br>&gt; Note: Ensure you’ve chosen the compartment you’ve set up. Feel free to name the compartment according to your preference.</p><p>4. For Free Trial or Always Free account users intending to use Always Free Resources, ensure you’re in a region that offers these resources. Your current default region is visible in the upper right corner of the page.</p><p><strong>Task 2: Create the Autonomous Database Instance</strong><br>Initiate the Create Autonomous Database process by clicking the corresponding button. This will bring up the creation page. Choose your desired region and compartment. A Forbidden message indicates an incorrect compartment selection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mYNnLpssTXhhd0hL.png" /></figure><p>2. In the basic information section for the Autonomous Database, provide the following details:<br> — Compartment: Pick the compartment you’ve just established.<br> — Display name: Assign a memorable and descriptive name for your database. <br> — Database Name: Use a combination of letters and numbers, beginning with a letter. The name should not exceed 14 characters and avoid underscores.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/0*jGlboyzRMnINkzC1.png" /></figure><p>3. For the workload type, you have several options:<br> — Data Warehouse: Optimized for data warehouse workloads, supporting standard SQL and BI tools with top-tier Oracle Database performance.<br> — Transaction Processing: Tailored for various applications including critical transaction processing, mixed analytics, IoT, and JSON document storage.<br> — JSON Database: A variant of Autonomous Transaction Processing designed for NoSQL-style applications using JSON documents.<br> — APEX: A cost-effective service for accessing the Oracle APEX platform to quickly build and deploy low-code applications.<br>For this guide, we’ll stick with the default Data Warehouse option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/0*2mnIwkrIhoEQTvoA.png" /></figure><p>4. For deployment type, keep the default Serverless selection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/0*-EtdAt8oZP7rkQyF.png" /></figure><p>5. In the database configuration section, maintain these default settings:<br> — Always Free: Ideal for development and testing new features. Available in both Free and paid accounts. Unless you’re using an Always Free account, leave this unchecked.<br> — Database version: Opt for version 19c.<br> — ECPU count: Set this to 2 ECPUs. (Not applicable for Always Free databases)<br> — Storage: Allocate 1 TB of storage. Always Free databases come with 20 GB.<br> — Compute auto scaling: Keep this enabled to allow automatic resource scaling up to 3x to meet demand.<br> — Storage auto scaling: Enable if you anticipate needing up to 3x more storage.<br><em>&gt; Note: Always Free autonomous databases can’t be scaled up or down.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/0*zA905F9bKOtUSL4r.png" /></figure><p>6. For backup retention, accept the standard 60-day period or adjust as needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/0*3eIWfHkUtg8FUCaq.png" /></figure><p>7. Set up administrator credentials:<br> — Username: The default ADMIN username will be displayed. Remember this for future tasks.<br> — Password: Create a strong password for the ADMIN user. Make sure to note it down.<br> — Confirm password: Re-enter your chosen password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/0*ACCyWyUgVWd9xzb7.png" /></figure><p>8. For network access, you can:<br> — Use the default “Secure access from everywhere” option.<br> — Choose “Secure access from allowed IPs and VCNs only” to restrict traffic to specific IP addresses and VCNs.<br> — Select “Private endpoint access only” to limit access to a private endpoint within an OCI VCN.<br> — Enable “Require mutual TLS (mTLS) authentication” for enhanced security. This allows TLS connections without a wallet when using a JDBC thin driver with JDK8 or higher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/0*MjJ40BH9WSjBLPR8.png" /></figure><p>9. For licensing, keep the default “License included” option unless your organization has existing licenses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/0*j69Mop5J5RAGoaPg.png" /></figure><p>10. You may skip providing a contact email address. This field is typically used for receiving operational notices and maintenance notifications.</p><p>11. Finalize the process by clicking “Create Autonomous Database”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xMsgrtXM4euUN1Dq.png" /></figure><p>12. You’ll be directed to the database details page. Initially, the status will show as PROVISIONING.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*As2QS8AGeHM-N-oFQGe_Cw.png" /></figure><p>You may see a lifecycle state tour box. Feel free to skip this tour if desired.<br>After a short wait, the status will change to AVAILABLE. Your Autonomous Data Warehouse is now ready for use. Take a moment to review the instance details, including name, version, ECPU count, and storage capacity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c12d9a05096c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle Database 23ai: Power AI applications with AI Vector Search]]></title>
            <link>https://medium.com/@bhenndricks/oracle-database-23ai-power-ai-applications-with-ai-vector-search-7de3f50f057f?source=rss-59bbcf570591------2</link>
            <guid isPermaLink="false">https://medium.com/p/7de3f50f057f</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[retrieval-augmented]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[vector]]></category>
            <category><![CDATA[oracle-23ai]]></category>
            <dc:creator><![CDATA[Blake Hendricks]]></dc:creator>
            <pubDate>Thu, 06 Jun 2024 21:35:02 GMT</pubDate>
            <atom:updated>2024-06-06T22:13:56.545Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*Rye86elaKpnvRhYXWgjCPQ.png" /></figure><p>As enterprises increasingly integrate AI-driven applications, choosing the right vector database becomes a pivotal decision. Vectors, unique numerical representations of unstructured data, facilitate the addition of contextual meaning for large language models (LLMs). This capability is essential for tasks like product recommendations and identifying correlations within data. Oracle’s latest enhancement to its database, AI Vector Search, introduces native vector data support within Oracle Database 23ai. This includes vector indexes and SQL operators specifically designed for vector searches, enabling rapid and efficient semantic queries on a variety of unstructured data types.</p><p>Oracle’s AI Vector Search is ideal for Retrieval-Augmented Generation (RAG) applications, an advanced AI technique that merges LLMs with enterprise data to provide precise and contextually relevant responses to natural language queries. This approach enhances accuracy without exposing sensitive data..</p><h3>What is AI Vector Search?</h3><p>AI Vector Search allows users to search data based on the semantics or meaning of data, in addition to the values of data, such as attribute values or keywords, as databases have traditionally supported. A vector, or vector embedding, is a popular data structure used in AI applications. A vector is a list of numbers, generated by deep learning models from diverse data types (e.g. images, documents, videos, etc.), that encodes the semantics of the data.</p><p>Oracle AI Vector Search allows you to generate, store, index, and query vector embeddings along with other business data, using the full power of SQL. As an example, for searching documents, vector search is often considered more effective than keyword-based search, as vector search is based on the meaning and context behind the words and not the actual words themselves.</p><p>Oracle AI Vector Search allows you to combine semantic document search with searches on structured document properties. For example, in a database of technology articles, a question such as “find articles about fine-tuning Large Language Models (LLMs) for enterprise use cases that have been published in the last 5 years by a certain author and a certain publisher in a certain country”, requires searching both the article text as well as article attributes, that may be present in one or more tables.</p><h3>Why Choose AI Vector Search?</h3><p>Oracle’s AI Vector Search brings simplicity and efficiency to data management by enabling similarity searches across structured and unstructured data. Here are some compelling reasons why AI Vector Search stands out:</p><p>- <strong>Single Database Simplicity</strong>: Combine similarity search with relational, text, JSON, spatial, and graph data types in a single database, simplifying data management and enhancing application functionality.</p><p>- <strong>Natural Language Conversations</strong>: Enable natural language search across your business data using Retrieval-Augmented Generation (RAG) to guide the Large Language Model (LLM) of your choice.</p><p>- <strong>Custom AI Applications</strong>: Develop AI-powered applications using your preferred development tools, frameworks, and languages.</p><p>- <strong>Enterprise-Grade AI</strong>: Build mission-critical AI applications with Oracle’s industrial-strength capabilities for scalability, performance, high availability, and security.</p><h3>Key Features of AI Vector Search</h3><p>Oracle Database 23ai’s AI Vector Search is packed with powerful features designed to streamline data management and enhance search accuracy:</p><p>1. <strong>VECTOR Data Type</strong>: Store vectors directly in Oracle Database 23ai using the new native VECTOR data type, supporting various dimension counts and formats to simplify applications.</p><p>2. <strong>Flexible Vector Generation</strong>: Import embedding models using the ONNX framework to generate vectors for your data, with the option to import vectors directly into the database.</p><p>3. <strong>Vector Indexes</strong>: Accelerate similarity searches with vector indexes, ensuring high accuracy and maximum performance for large datasets.</p><p>4. <strong>SQL Extensions for Querying Vectors</strong>: Utilize intuitive SQL extensions for similarity searches on vectors within complex queries across different data types.</p><p>5. <strong>Target Accuracy Specification</strong>: Define target search accuracy easily during index creation or override in search queries to meet specific requirements.</p><p>6. <strong>Exadata Optimizations</strong>: Enhance vector index creation and searches with Exadata System Software 24ai optimizations, providing enterprise-grade performance, scale, and availability.</p><p>The VECTOR data type is fully integrated in SQL and PL/SQL, and is supported across multiple clients and programming languages, with native binding capabilities in python-oracledb, node-oracledb, JDBC, and ODP.NET drivers. This comprehensive support provides seamless vector search functionality across multiple development environments.</p><p>Oracle AI Vector Search is also fully integrated in popular 3rd party Generative-AI frameworks such as LangChain.</p><p>Oracle AI Vector Search includes native APIs to make REST callouts to LLM APIs for content generation (like text) or summarization and other operations used in the Generative-AI pipeline. These new capabilities allow seamless support for Retrieval Augmented Generation (RAG), a breakthrough generative AI technique that augments large language models (LLMs), with private business data, to deliver accurate responses to natural language questions on business data.</p><h3>Use Cases for Oracle AI Vector Search</h3><p>AI Vector Search is versatile, offering solutions for a wide range of industries and applications. Key use cases include:</p><h4>Similarity Search</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S-9KUDNGb-C2S6WF" /></figure><p>Similarity search focuses on finding related data based on its semantic meaning, making it ideal for:</p><p>- <strong>Semantic Search of Documents</strong>: Efficiently locate relevant documents based on their content.</p><p>- <strong>Semantic Search of Images</strong>: Identify similar images within large datasets.</p><p>- <strong>Recommendation Systems</strong>: Provide personalized recommendations by finding similar items.</p><p>- <strong>Pattern Recognition</strong>: Detect patterns in data for predictive analytics.</p><p>- <strong>Anomaly and Fraud Detection</strong>: Identify unusual patterns indicative of fraud or anomalies.</p><h3>Retrieval-Augmented Generation (RAG)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Sx2uw6tBLhDjo17y" /></figure><p>RAG uses similarity search results to enhance the accuracy and contextual relevance of LLM responses, allowing enterprises to:</p><p>- <strong>Build Intelligent Chatbots</strong>: Improve chatbot responses with up-to-date and contextually relevant data.</p><p>- <strong>Optimize Document Searches and Summaries</strong>: Enhance document retrieval and summarization for faster decision-making.</p><p>- <strong>Code Synthesis</strong>: Assist developers with language-to-code translation for more efficient coding.</p><p>- <strong>Domain-Specific Knowledge Answers</strong>: Provide precise answers to specialized business queries without extensive retraining of models.</p><p><strong>Additional use cases include:</strong></p><p>- <strong>Conversational AI, or Chatbots:</strong> Build AI-powered digital assistants</p><p>-<strong> Similarity Search: </strong>Match customers with products</p><p>- <strong>Content-Based Filtering: </strong>Enable personalized recommendations, locate retail items from pictures</p><p>- <strong>Natural Language Processing: </strong>Text classification and clustering SQL generation</p><p>-<strong> Data Analysis:</strong> Anomaly detection, pattern recognition</p><p>- <strong>Computer Vision:</strong> Face recognition, biometric identification, object detection</p><p>- <strong>Biomedical Research</strong>: Gene/DNA similarity research, molecular structure search</p><p>- <strong>Geographic Information Systems</strong>: Spatial analysis, map rendering</p><p>-<strong> Industrial Applications: </strong>Quality control, predictive maintenance, machinery malfunction</p><p>Oracle AI Vector Search enables the combination of search on semantic and business data resulting in more-accurate answers quickly, and securely. With the addition of AI Vector Search to Oracle Database, users can quickly, and easily get the benefits of artificial intelligence without sacrificing security, data integrity or performance.</p><h3>Augmenting AI Models with Vector Search</h3><p>AI Vector Search enhances the utility of LLMs by augmenting their knowledge with data relevant to specific queries. This combination enables more accurate and contextually relevant responses, a crucial advantage for enterprises aiming to leverage AI for customer interactions and data analysis.</p><h3>Developer-Centric Enhancements</h3><p>Oracle Database 23ai is designed to simplify the application development process. By reducing complexity, developers can focus on creating innovative solutions without being bogged down by technical details. Key technologies such as JSON Relational Duality allow developers to leverage the strengths of both relational and JSON development approaches within a single application, making data management more efficient and flexible.</p><h3>Benefits of Oracle AI Vector Search</h3><p>Oracle Database is a leading repository of operational and enterprise data. Enterprise applications usually need to search a combination of business data and unstructured data. For example, a retail website could feature searches based on a natural language product description and a target product image, along with other filters, such as price, store location, manufacturer, and current availability. This search requires simultaneously searching unstructured catalog data (product description and image), structured catalog data (price, store location and manufacturer) as well as real time transactional data (such as current inventory).</p><p>The combination of the converged capabilities of Oracle Database, and Oracle AI Vector Search, provides several unique benefits:</p><p><strong>Seamless Combination of AI Vector Data with Your Business Data</strong></p><p>This is a key benefit of Oracle AI Vector Search, since it lets users run AI-powered vector similarity searches within their existing Oracle Databases instead of having to move business data to a separate vector database. Avoiding data movement can reduce complexity, improve security, and enable searches on current data.</p><p>Oracle AI Vector search allows far more powerful searches than most dedicated vector databases, by combining sophisticated business data search with AI vector similarity search using simple, intuitive SQL and the full power of converged database — JSON, graph, text, relational, spatial, etc. all within a single query.</p><p><strong>Powering Retrieval Augmented Generation with Business Data</strong></p><p>Vector databases improve interactions with LLMs since they provide scenario-specific private context to LLMs to obtain more accurate answers. This is a well-known workflow referred to as Retrieval Augmented Generation (RAG).</p><p>Oracle AI Vector Search also leverages the full power of business data to further refine LLM interactions, making use of business criteria such as security filters, business metrics and business rules, resulting in ultra-sophisticated Retrieval Augmented Generation (RAG) for the Enterprise.</p><p><strong>Support for the Full Generative AI Pipeline for Business Data</strong></p><p>Oracle AI Vector Search supports native database APIs to perform all aspects of the generative AI pipeline, from end to end, making it easier for your developers to build next-gen AI applications using your business data, directly within Oracle Database.</p><p><strong>Unique Combination of AI Vector Search and Full Machine Learning Suite</strong></p><p>Oracle Database offers both a full suite of in-database machine learning algorithms as well as similarity search on AI vectors. This combination enables Oracle Database to handle a very wide range of AI use cases involving machine learning actions (decisions, predictions, classification, forecasts, etc.) as well as the power of AI-based vector search. For instance, it is easy to combine inference and classification with AI Vector Search, within the same SQL query.</p><p><strong>Proven, Enterprise-Class Scalability, Fault Tolerance and Security</strong></p><p>Oracle Database is a leading repository of business data, and the combination of business data and semantic search is what enterprises need to implement artificial intelligence solutions. AI Vector Search is built into Oracle Database and leverages:</p><p>- Partitioning, RAC, Sharding and Exadata for proven, industrial-strength scalability.</p><p>- Extreme HA and DR technologies like Data Guard, Golden Gate, Flashback, RMAN, ZDLRA and more.</p><p>- Cutting-edge security with Oracle Advanced Security including features such as Transparent Data Encryption, Key Vault, Audit Vault, Virtual Private Database and more.</p><h3>Industry Feedback</h3><p>Early testers of AI Vector Search have provided positive feedback, highlighting its ease of integration and transformative potential. For example, Heli Helskyaho, CEO of Miracle Finland Oy, praised the natural language querying capabilities that improve customer service efficiency and quality. Additionally, Shigeru Urushibara, Chairman of UL Systems Inc., emphasized the simplicity of implementing vector data alongside existing relational data to create advanced AI-driven systems.</p><h3>Summary</h3><p>Oracle AI Vector Search, with Oracle Database, enables a new class of applications making it possible to transform traditional business processes by enabling semantic searches using LLMs augmented with existing business data.</p><p>- New SQL operators, and syntax, enable you to easily combine relational search, on business data, with semantic search on unstructured data</p><p>- AI-powered vector similarity searches using Oracle Database — no need to move business data to a separate vector database</p><p>- Easily utilize Retrieval Augmented Generation (RAG) to augment LLM responses with your enterprise specific content</p><p>- Enhance your applications with the enterprise-class security, scalability, and partitioning capabilities of Oracle Database</p><h3><strong>Conclusion</strong></h3><p>Oracle Database 23ai’s AI Vector Search is a game-changer for enterprises looking to maximize the value of their data. By integrating advanced AI capabilities with robust database management, Oracle delivers a powerful solution that simplifies data management, enhances search accuracy, and supports the development of innovative AI applications. This innovation represents a significant step forward in the evolution of enterprise data management, empowering organizations to stay ahead in a competitive landscape.</p><p>Embrace the future of enterprise data management with Oracle Database 23ai and unlock new possibilities for your business. For hands-on experience with AI Vector Search, visit <a href="https://apexapps.oracle.com/pls/apex/f?p=133:100:15941776420753::::SEARCH:vector"><strong>Oracle Live Labs</strong></a>, where you can explore workshops and sprints designed to help you get started. Additionally, you can try 20+ Always Free cloud services with a 30-day trial for even more. Oracle offers a<strong> </strong><a href="https://www.oracle.com/cloud/free/"><strong>Free Tier</strong></a><strong> </strong>with no time limits on over 20 services, including Autonomous Database, Arm Compute, and Storage, along with $300 in free credits to try additional cloud services. Get the details and sign up for your free account today.</p><h3>More Information</h3><p>To learn more about using Oracle AI Vector Search with Oracle Database, please see:</p><p><strong>Feature page</strong>: <a href="https://www.oracle.com/database/ai-vector-search/">AI Vector Search</a></p><p><strong>Blog</strong>: <a href="https://blogs.oracle.com/database/post/oracle-23ai-now-generally-available">Announcing Oracle Database 23ai General Availability</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7de3f50f057f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unraveling Data Mysteries with Oracle Graph: A Developer’s Treasure Map]]></title>
            <link>https://medium.com/@bhenndricks/unraveling-data-mysteries-with-oracle-graph-a-developers-treasure-map-dffb08a1ba61?source=rss-59bbcf570591------2</link>
            <guid isPermaLink="false">https://medium.com/p/dffb08a1ba61</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[oracle-graph]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[fraud-detection]]></category>
            <category><![CDATA[spatial-computing]]></category>
            <dc:creator><![CDATA[Blake Hendricks]]></dc:creator>
            <pubDate>Thu, 29 Feb 2024 19:41:07 GMT</pubDate>
            <atom:updated>2024-03-04T12:59:02.800Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine sailing the vast ocean of data, where every piece of information is a potential discovery. In this ocean, understanding the intricate network of relationships between data points is akin to uncovering hidden treasure. This is where the concept of a graph comes into play, and Oracle Graph is the compass that guides you through these treacherous waters.</p><h3>What is a Graph?</h3><p>A graph is a collection of vertices (or nodes) and edges (connections between those nodes). Think of it as a family tree, where individuals are nodes and their relationships are the edges. This simple yet powerful concept is the backbone of graph technology, allowing us to visualize and analyze complex networks.</p><h3>Why It Is Important</h3><p>Graphs mirror the interconnected world we live in, from social networks to the internet, from transportation systems to biological networks. They help us make sense of complex relationships and dependencies, enabling us to extract meaningful insights from seemingly disparate data.</p><h3>Harnessing the Power of 60+ Graph Algorithms with Oracle Graph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*6qFE539ywl2gRBU4lV8f5Q.png" /></figure><p>A Symphony of Algorithms at Your Fingertips Oracle Graph contains a suite of over 60 parallelized, in-memory algorithms, ready to tackle complex data analysis right out of the box. These algorithms are crafted to scale and offer high performance, setting Oracle Graph apart from its peers. Let’s break down the six key areas where these algorithms make a significant impact:</p><ul><li>Detecting Communities: Identify clusters and connections within your data, from tightly-knit groups to broader communities.</li><li>Topology Analysis: Understand the structure and hierarchy of your network, finding the most influential nodes.</li><li>Ranking and Walking: Rank the importance of nodes or paths in your graph, uncovering key influencers and the paths they traverse.</li><li>Path-Finding: Navigate through your data with algorithms designed to find the shortest or most efficient paths.</li><li>Link Prediction and Others: Anticipate future connections in your network, and understand the underlying patterns that lead to these links.</li><li>Machine Learning: Apply sophisticated machine learning techniques to your graph data, extracting advanced insights and predictions.</li></ul><p>Incorporating these categories into your analysis with Oracle Graph allows you to perform a broad range of operations — from community detection to machine learning — within the familiar and secure confines of Oracle’s database ecosystem.</p><h3>Some Use Cases</h3><p>- <strong>Social Networking</strong>: Graphs can map out social connections, helping to recommend new friends or content.</p><p>- <strong>Fraud Detection</strong>: By analyzing transaction networks, graphs can identify unusual patterns indicative of fraudulent activity.</p><p>- <strong>Supply Chain Optimization</strong>: Graphs can optimize routes and logistics by analyzing the network of suppliers, routes, and products.</p><h3>Why Oracle Graph? The Advantages</h3><p>Oracle Graph stands out for several reasons:</p><p>- <strong>Comprehensive Analytics</strong>: With over 60 prebuilt algorithms, Oracle Graph offers a toolkit for deep data exploration.</p><p>- <strong>User-Friendly Interface</strong>: Graph Studio makes complex data analysis accessible to all users, not just data scientists.</p><p>- <strong>Scalability and Security</strong>: Built on Oracle’s robust database infrastructure, it offers unparalleled scalability and security.</p><p>- <strong>Integration and Flexibility</strong>: It integrates seamlessly with the Oracle ecosystem and supports various graph types and APIs.</p><h3>A Note to Developers</h3><p>As developers navigating the complexities of data relationships, it’s essential to know that Oracle Graph isn’t just a tool; it’s a built-in feature of the Oracle Database. This integration means you can leverage graph capabilities directly within your database environment — no need to move data out. You benefit from the high performance and security of Oracle’s converged database while unlocking powerful graph analytics and insights. It’s about making your database work smarter, not harder. Start exploring Oracle Graph <a href="https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=686">today</a> and see how it can transform your data analysis workflow, all within the secure and high-performing environment you already trust</p><h3>Getting Started</h3><p>Dive into the world of Oracle Graph by exploring the <a href="https://www.oracle.com/database/graph/">Oracle Graph documentation</a>. Experiment with Graph Studio, familiarize yourself with the APIs, and join the vibrant community of Oracle developers. The treasure of insights awaits, and Oracle Graph is your map to uncovering it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dffb08a1ba61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle Machine Learning for R (OML4R)]]></title>
            <link>https://medium.com/@bhenndricks/oracle-machine-learning-for-r-oml4r-ce5aec34858b?source=rss-59bbcf570591------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce5aec34858b</guid>
            <category><![CDATA[r]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Blake Hendricks]]></dc:creator>
            <pubDate>Thu, 15 Feb 2024 15:09:03 GMT</pubDate>
            <atom:updated>2024-02-15T15:09:03.601Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bHo7xcaIq_7X7qjERor_nQ.jpeg" /></figure><p>As a data scientist, the R programming language likely plays a major role in your analytics toolkit. With its rich ecosystem of packages and flexibility for statistical computing, R has become the go-to environment for data exploration, visualization, and modeling.</p><p>But as dataset sizes grow ever larger, R users often hit snags when it comes to performing analytics at scale. Bottlenecks frequently emerge around data transfer, storage, and computation using just R and flat files. This is where Oracle Machine Learning for R (OML4R) comes into the picture.</p><h3>Why OML4R is a Game-Changer</h3><p>OML4R tightly integrates R with Oracle Database, providing data scientists with the best of both worlds:</p><p>- <strong>Productivity</strong>: OML4R allows you to use familiar R syntax and packages while leveraging the database for heavy lifting. No need to learn complex SQL just to query data.</p><p>- <strong>Performance</strong>: By pushing computation into the database, OML4R minimizes data movement. Analytical workflows execute faster, even on vast datasets.</p><p>- <strong>Scalability</strong>: Oracle’s parallel query engine and machine learning algorithms built for MPP architecture enable analyses at massive scales.</p><p>- <strong>Collaboration</strong>: OML4R makes it seamless to go from exploration to production deployment. Data products can be easily operationalized within Oracle for applications.</p><h3><strong>OML4R in Action</strong></h3><p>Imagine you need to build a predictive churn model using a 50 TB dataset with 100 million customer records and 500 variables. Traditionally, this would require some complex combination of R, SQL, and moving data around. With OML4R, you can simply:</p><p>- Connect to the database from R.</p><p>- Use familiar R DataFrame syntax to access and prepare the data without moving it.</p><p>- Build models using OML4R’s in-database algorithms like Random Forest and Neural Nets.</p><p>- Deploy the model back into Oracle for scoring.</p><p>By handling data volumes like this completely within the database engine, OML4R boosts productivity and performance at once.</p><h3><strong>New Heights of Analytical Performance</strong></h3><p>OML4R pushes the boundaries of performance by:</p><p>- Leveraging Oracle’s high-performance distributed computing capabilities.</p><p>- Using advanced in-database algorithms optimized for Oracle’s MPP architecture.</p><p>- Enabling parallel execution of user-defined R functions.</p><p>This unlocks speeds and efficiencies in analytical workflows that are not possible with R alone.</p><h3><strong>OML4R Community &amp; Support</strong></h3><p>OML4R is backed by Oracle’s strong commitment to the R ecosystem over the past decade. Oracle contributes to packages like ROracle and actively supports the R Consortium.</p><p>An engaged user community has rallied around OML4R, exchanging ideas and contributing code on GitHub. For any questions, Oracle provides extensive documentation and resources to help you get started and be productive with OML4R.</p><h3><strong>Accelerate Your R Potential</strong></h3><p>If you feel R slowing down analytical tasks as data volumes grow, OML4R provides the perfect solution to accelerate into high gear again. By combining the flexibility of R with the performance of Oracle Database, OML4R empowers data scientists to reach new heights of productivity and scale.</p><p>The best way to experience the power is to simply try it out yourself — get started with the OML4R client package today! <a href="https://www.oracle.com/database/technologies/datawarehouse-bigdata/oml4r.html">OML4R client package</a></p><p>Step-by-step walkthrough <a href="https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3204&amp;clear=RR,180&amp;session=109231130504039">Oracle Machine Learning for R</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce5aec34858b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transforming Natural Language Processing to SQL]]></title>
            <link>https://medium.com/@bhenndricks/transforming-natural-language-to-sql-15f643a731dd?source=rss-59bbcf570591------2</link>
            <guid isPermaLink="false">https://medium.com/p/15f643a731dd</guid>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Blake Hendricks]]></dc:creator>
            <pubDate>Thu, 28 Dec 2023 16:37:34 GMT</pubDate>
            <atom:updated>2024-01-23T21:31:18.046Z</atom:updated>
            <content:encoded><![CDATA[<h4>Leveraging Oracle Autonomous Database with OpenAI’s Capabilities</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6OGjBQxziYI5OjPkp3tuEg.png" /></figure><p>For developers, accessing the valuable data stored in databases often requires complex SQL queries. Writing these queries takes significant effort and expertise. To alleviate this pain point for developers, Oracle’s Autonomous Database integrated with AI query generation provides an elegant solution.</p><p>In this post, we’ll dive into how an application combines these technologies to allow developers to query databases in plain English without any expertise in SQL. We’ll look at the key components powering this simplicity under the hood.</p><h3>Why is SQL Challenging for Developers?</h3><p>For background, SQL syntax follows strict structural rules that take practice to apply properly:</p><ul><li>Knowing exactly how to JOIN related tables or perform nested queries takes learning.</li><li>The logic has to map correctly to the actual database schema and contents.</li><li>Debugging faulty SQL queries adds further complications.</li></ul><p>These factors make writing SQL notoriously difficult. Queries often take multiple iterations and testing even for experienced developers.</p><p>Complex analytical questions require extensive SQL skills, especially with large production databases powering applications.</p><h3>Autonomous DB: No Infrastructure Overhead</h3><p>Oracle designed its Autonomous Database service specifically for the cloud infrastructure era.</p><p>The fully-managed platform eliminates infrastructure maintenance work like:</p><ul><li>Hardware provisioning/scaling</li><li>Software installation/configuration</li><li>Tuning, patching, upgrades</li><li>High availability and fault tolerance</li></ul><p>With Autonomous Database, developers simply provide their data and focus entirely on building application functionality and querying the databases needed for their apps.</p><p>For example, the sample application we’ll cover uses an Autonomous Database containing Netflix’s media dataset. This serves as a concrete example of fast querying for analytics use cases.</p><h3>OpenAI’s NLP Models Understand Natural Language</h3><p>Recent advances in AI natural language processing now allow deeper language understanding at scale. Models can analyze text, reason about semantics and context, and generate written responses.</p><p>OpenAI’s GPT-3.5 model leverages this capability for the killer app of translating natural language questions into perfectly formatted SQL queries.</p><p>The run_conversation function shows this in action:</p><ol><li>It prepares the database schema and context</li><li>Takes the developer’s English question</li><li>Calls GPT-3.5 to convert the question into an SQL query</li></ol><p>This makes querying databases as easy as having a conversation!</p><h3>Connecting Python Code to Database</h3><p>To connect the dots between the developer’s interface, AI model, and database:</p><ul><li>Python framework Streamlit captures user questions and displays the SQL/results.</li><li>Database connector libraries like cx_Oracle establish the link between Python and Autonomous Database for executing queries programmatically.</li></ul><p>So at the highest level:</p><ol><li>User questions enter via Streamlit</li><li>GPT-3.5 converts questions to SQL</li><li>SQL executes on the database via Python/cx_Oracle</li><li>Query results return for display</li></ol><p>This end-to-end pipeline enables plain English queries without SQL complexity.</p><h3>When to Leverage This Approach</h3><p>The biggest value of this natural language search is enhanced developer productivity. Writing functioning SQL queries from scratch no longer impedes data analysis and application building.</p><p>However, for queries executed in production applications, hard-coded SQL still proves more performant. Database-generated SQL also risks slight inaccuracies from the AI model.</p><p>So this technique shines most for ad-hoc analytics and early prototyping. The convenience helps developers iterate faster early on and gather insights quicker.</p><h3>Key Takeaways</h3><p>This application combining Autonomous Database and AI query generation delivers a few key benefits:</p><p>1. Abstraction from infrastructure maintenance with a fully-managed database</p><p>2. SQL complexity eliminated with natural language queries powered by AI</p><p>3. Faster insights and app building by removing SQL query hurdles</p><p>With robust language models like GPT-3.5 now accessible via API from OpenAI, expect more integration into workflows like speeding up database queries. Together with cloud infrastructure innovations, AI augments development tasks in powerful ways.</p><h3>Get Started with the Example Code</h3><p>To try out natural language database queries for yourself:</p><ul><li>An Oracle Autonomous Database containing the Netflix dataset requires setup</li><li>Example Python code demonstrating the query functionality has been pushed to GitHub</li></ul><p>Feel free to directly access and run the sample<a href="https://github.com/bhenndricks/SQLAI"> application on Github</a> to see language queries in action.</p><p>The codebase includes:</p><ul><li>Application logic to inference with OpenAI API</li><li>Database connection handling</li><li>Streamlit frontend for visualization</li></ul><p>Additionally, view the<a href="https://www.kaggle.com/datasets/shivamb/netflix-shows/"> Netflix database schema</a> for reference on tables and fields available to query.</p><p>With this foundation, you can start building your natural language search right away on top of your data in the Autonomous Database!</p><p>Clone the repo, configure credentials, load data, and begin conversing with your database instantly without complex SQL.</p><p>Let me know in discussions if any issues setting up or running the provided sample application and database.</p><p>Follow me:<br><a href="https://www.linkedin.com/in/bhenndricks/">LinkedIn</a><br><a href="https://github.com/bhenndricks">Github</a><br><a href="https://www.youtube.com/@codewithbhenndricks">Youtube</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15f643a731dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use LangChain with Oracle Autonomous Database]]></title>
            <link>https://medium.com/@bhenndricks/how-to-use-langchain-with-oracle-autonomous-database-e96f52b96698?source=rss-59bbcf570591------2</link>
            <guid isPermaLink="false">https://medium.com/p/e96f52b96698</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[langchain]]></category>
            <dc:creator><![CDATA[Blake Hendricks]]></dc:creator>
            <pubDate>Tue, 07 Nov 2023 20:10:54 GMT</pubDate>
            <atom:updated>2023-11-07T20:10:54.747Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xo4Ury8dmLapA6y2FkbWzA.png" /></figure><h3>Overview</h3><p>AI assistants are getting smarter every day. But much of their knowledge still comes from their initial training datasets. To have more intelligent conversations, assistants like LangChain need access to robust, real-time information.</p><p>One powerful way to do this is by connecting LangChain to an Oracle Autonomous Database. This unlocks the ability to tap into enterprise-scale data and analytics.</p><p>In this post, I’ll walk through how to connect these two powerful technologies to create a turbo-charged AI assistant.</p><p><strong>LangChain — An AI Assistant That’s Helpful, Harmless, and Honest</strong></p><p>LangChain is at the cutting edge of AI assistants. Created by Anthropic to be helpful, harmless, and honest, it uses an advanced technique called chain-of-thought prompting.</p><p>This allows LangChain to have natural conversations and generate high-quality text and code on demand.</p><p>Some key capabilities include:</p><p>- Responding to questions and commands in over 40 languages<br>- Translating between languages<br>- Writing emails, reports, technical documentation<br>- Answering queries by searching the internet or databases<br>- Creating content for blogs, marketing campaigns, and more</p><p>LangChain continues learning and improving from new conversations and feedback.</p><p><strong>Autonomous Database — Self-Driving Database for Cloud</strong></p><p>Oracle’s Autonomous Database is a fully-managed cloud database service powered by machine learning. It automates:</p><p>- Provisioning, scaling, tuning, upgrading <br>- Backups, recovery, failure handling<br>- Security patching and compliance</p><p>This reduces labor and human errors. The database provides high availability and elastic scaling, along with robust security.</p><p>Autonomous Databases are currently available for data warehouses, transaction processing, JSON document storage, graph databases, and time series.</p><p><strong>Connecting LangChain to Autonomous Database</strong></p><p>With some configuration, we can connect LangChain to an Autonomous Database. This gives it direct access to query and integrate enterprise data into conversations.</p><p><em>Here are the key steps:</em></p><p><strong>1. Provision Autonomous Database on OCI</strong></p><p>Sign up for an Oracle Cloud account if needed. Then provision an Autonomous Database instance. Make note of the connection string.</p><p><strong>2. Install Oracle Instant Client and SDK</strong></p><p>Download and install the Instant Client and language-specific SDK (e.g. Python) on your environment. This enables connecting to the database from LangChain.</p><p><strong>3. Create the database connection</strong></p><p>Import the Oracle library in your LangChain code. Use the connection string to create a new database connection object.</p><p>```python<br>import cx_Oracle</p><p>connection = cx_Oracle.connect(<br> “&lt;username&gt;”,<br> “&lt;password&gt;”,<br> “&lt;connection_string&gt;”) <br>```</p><p><strong>4. Write helper functions to query</strong></p><p>Write Python functions that use the connection to query the database for needed information. Return the results to LangChain.</p><p>For example, to get orders for a customer:</p><p>```python<br>def get_customer_orders(customer_id):<br> cursor = connection.cursor()</p><p>query = ‘’’SELECT * FROM orders <br> WHERE customer_id = :id’’’<br> <br> cursor.execute(query, {‘id’: customer_id})<br> <br> return cursor.fetchall()<br>```</p><p><strong>5. Call functions from LangChain</strong></p><p>Now within a LangChain conversation, call the helper functions to fetch real-time data from the database.</p><p>```<br>Human: What were the last 3 orders for customer 145?</p><p>LangChain: &lt;calls get_customer_orders() and prints results&gt;<br>```</p><p>And that’s it! LangChain can now tap into scalable, enterprise data within natural conversations.</p><p><strong>Let Your AI Assistant Loose on Your Data</strong></p><p>Connecting LangChain’s conversational AI abilities with Oracle’s robust Autonomous Database unlocks new possibilities. Enterprise employees and customers can get personalized, data-driven experiences powered by AI.</p><p>It can take time to manually connect these technologies. But the end result is well worth the effort.</p><p>Some ways to apply this:</p><p>- Customer service agents equipped with data-driven AI assistants<br>- Enterprise employees getting data queries answered conversationally<br>- Conversational bots and apps powered by real-time data access</p><p>If this quick guide piqued your interest, I’m happy to provide more details. Feel free to reach out to their Twitter at<a href="http://twitter.com/langchain_blog"> @langchain_blog</a> with questions!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e96f52b96698" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning with Oracle Autonomous Database]]></title>
            <link>https://medium.com/@bhenndricks/machine-learning-with-oracle-autonomous-database-4a4709866394?source=rss-59bbcf570591------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a4709866394</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[autonomous-database]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[oracle]]></category>
            <dc:creator><![CDATA[Blake Hendricks]]></dc:creator>
            <pubDate>Wed, 25 Oct 2023 19:07:03 GMT</pubDate>
            <atom:updated>2023-10-25T19:07:03.323Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*llgWJblajZtLKQP_" /></figure><h3>An Overview of Machine Learning on Oracle Autonomous Database</h3><p>Machine learning is transforming how organizations gain valuable insights from their data. Oracle Autonomous Database makes it easy for anyone to leverage the power of machine learning, even without specialized data science skills. In this post, we’ll provide an overview of machine learning capabilities on Oracle Autonomous Database and give examples of how you can apply machine learning to solve real business problems.</p><h3>What is Machine Learning?</h3><p>Machine learning is a technique that automatically discovers patterns and relationships in data. It goes beyond traditional statistical analysis by automatically building models that make predictions or categorize data using sophisticated algorithms.</p><p>Some key benefits of machine learning include:</p><ul><li>Finding hidden trends and patterns in data</li><li>Making data-driven predictions and recommendations</li><li>Detecting anomalies and fraudulent activities</li><li>Automating complex processes to save time and money</li></ul><h3>Machine Learning on Oracle Autonomous Database</h3><p>Oracle Autonomous Database provides a variety of tools and interfaces to build and deploy machine learning models directly in the database:</p><ul><li>SQL Access — Oracle Machine Learning for SQL (OML4SQL) enables you to use SQL commands to build models using algorithms like classification, regression, clustering, anomaly detection, and more.</li><li>Notebooks — Oracle Machine Learning Notebooks provide a browser-based environment for interactive data exploration and model building using Python and SQL.</li><li>AutoML UI — The AutoML User Interface guides you through the machine learning model-building process with an easy-to-use visual interface. It automates key steps like algorithm and feature selection.</li><li>OML4Py &amp; OML4R — Python and R interfaces for scripting and automating machine learning workflows.</li><li>OML Services — REST APIs to deploy, monitor, and manage models.</li></ul><h3>Real-World Examples</h3><p>Here are just a few examples of how machine learning can help solve business problems on Autonomous Database:</p><ul><li>Predictive Analytics — Forecast sales, detect fraud, anticipate customer churn and more.</li><li>Personalization — Recommend products and content to customers based on preferences.</li><li>Text Analytics — Extract insights from customer surveys, support tickets, social media, and other text sources.</li><li>Image Recognition — Automatically tag and categorize images to enable smart search and identification.</li><li>Anomaly Detection — Identify unusual patterns in network traffic, transactions, sensor data, and other time series data to detect problems.</li><li>Smart Assistants — Create chatbots that can understand natural language questions and provide answers.</li></ul><h3>Get Started with Machine Learning Today</h3><p>Oracle Autonomous Database makes it quick and easy to get started with machine learning. You can provision a new database in just minutes and immediately make use of the built-in ML capabilities. Whether you want to build models with SQL, notebooks, or AutoML, Autonomous Database has you covered. See for yourself how you can apply the power of machine learning to your most pressing business problems! Here is a <a href="https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=560&amp;clear=RR,180&amp;session=4287682803196">link </a>to a tutorial with step-by-step instructions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a4709866394" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Extending Oracle E-Business Suite with Oracle APEX]]></title>
            <link>https://medium.com/@bhenndricks/extending-oracle-e-business-suite-with-oracle-apex-15270467cafd?source=rss-59bbcf570591------2</link>
            <guid isPermaLink="false">https://medium.com/p/15270467cafd</guid>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[apex]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Blake Hendricks]]></dc:creator>
            <pubDate>Tue, 17 Oct 2023 12:37:30 GMT</pubDate>
            <atom:updated>2023-10-17T12:45:33.543Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*XMwr40jwzOEfFkkk.png" /></figure><h3><strong>Overview</strong></h3><p>Oracle E-Business Suite (EBS) provides a comprehensive set of business applications for managing your organization’s key business processes. However, there may be times when you need to extend the functionality of EBS to meet your specific business needs. This is where Oracle Application Express (APEX) comes in.</p><p>APEX provides a rapid web application development tool that runs in the Oracle database. With APEX, you can quickly build new applications that integrate seamlessly with EBS using standard EBS customizations. The benefits of using APEX include:</p><ul><li>Rapid Application Development — APEX features a declarative framework, wizards and templates that enable developers to build functional web apps very quickly without extensive coding.</li><li>Minimal Footprint — APEX resides completely within the Oracle DB meaning there are no additional middleware requirements.</li><li>Seamless Integration — APEX apps can share the same authentication, data and business logic as EBS allowing a unified user experience.</li><li>Better Security — Keeping customizations in APEX rather than directly in EBS enables easier patching/upgrades. APEX itself also provides a hardened environment.</li><li>Low Code Solution — APEX utilizes wizards, drag and drop interfaces, and other low/no code tools enabling citizen developers to extend EBS.</li></ul><h3><strong>Architecture</strong></h3><p>The recommended architecture involves installing APEX and ORDS (Oracle Rest Data Services) on an application server separate from the EBS instance. APEX communicates natively with EBS using a dedicated integration schema (e.g. XX_APEX) that has limited privileges on EBS objects.</p><p>Setting up APEX with EBS involves:</p><ol><li>Installing APEX and configuring ORDS on a separate middle tier server.</li><li>Creating a dedicated schema (e.g XX_APEX) for APEX apps within the EBS database.</li><li>Setting up authentication to use standard EBS authentication.</li><li>Defining EBS profile options, form functions and responsibilities to call APEX apps.</li><li>Building APEX apps using wizards and accessing EBS data via views in the integration schema.</li><li>Securing APEX apps by integrating with EBS responsibilities for authorization.</li></ol><p>This architecture keeps customizations separate from the EBS instance to avoid conflicts while still providing tight integration between the two systems.</p><h3><strong>Developing APEX Apps</strong></h3><p>Developing apps in APEX to extend EBS involves a simple 3 step work flow:</p><ol><li>Create Views — Create views in the dedicated schema to access required EBS data</li><li>Build App — Use wizards to rapidly build an app based on the views</li><li>Secure App — Apply EBS responsibility-based authorization schemes</li></ol><p>For example, you could create a view on FND_USER then use a wizard to generate a form page to update user details. Next integrate that page with EBS responsibilities to control access.</p><p>Any updates to EBS data should call standard APIs rather than directly modifying tables. APEX also supports features like interactive grids, charts and reports for easily building custom dashboards on EBS data.</p><h3><strong>Conclusion</strong></h3><p>APEX is the fastest way to extend EBS applications and data with new functionality. Using a layered architecture and standard integrations, developers can rapidly deliver solutions to meet specific business needs. The end result is a seamless user experience where new APEX apps feel like native EBS functions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15270467cafd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scale Up your Apps and provide a Superior Customer Experience with Oracle 23c’s Lock-Free…]]></title>
            <link>https://medium.com/@bhenndricks/scale-up-your-apps-and-provide-a-superior-customer-experience-with-oracle-23cs-lock-free-734801b7f752?source=rss-59bbcf570591------2</link>
            <guid isPermaLink="false">https://medium.com/p/734801b7f752</guid>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[concurrent-programming]]></category>
            <category><![CDATA[database-development]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-structures]]></category>
            <dc:creator><![CDATA[Blake Hendricks]]></dc:creator>
            <pubDate>Thu, 05 Oct 2023 13:51:58 GMT</pubDate>
            <atom:updated>2023-10-05T13:51:58.590Z</atom:updated>
            <content:encoded><![CDATA[<h3>Scale Up your Apps and provide a Superior Customer Experience with Oracle 23c’s Lock-Free Reservation</h3><p><strong>Introduction</strong></p><p>In the world of concurrent programming, efficiency, and scalability are imperative. One technique that has garnered attention for its ability to tackle these challenges is Oracle 23c’s Lock-Free Reservation. In this blog, we’ll delve into what Lock-Free Reservation is, why it is useful, how it outshines conventional locking mechanisms when there are a large number of concurrent updates to hot data, and provide some real-world use cases and examples.</p><p><strong>What is a Lock-Free Reservation?</strong></p><p>At the heart of this innovation lies Lock-Free Reservation (LFR), whose primary mission is to enable multiple users to safely modify shared resources and data structures without the binding of traditional locks or mutexes. This feature helps to eliminate the chaos that occurs when users opt for exclusive access to a resource. The result? An end to bottlenecks and a boost in throughput.</p><p><strong>Lock-Free vs. Locking: A Comparative Look</strong></p><p>To fully grasp the capability of Lock-Free Reservation, let’s embark on a journey of comparison with traditional locking mechanisms.</p><p><strong>Locking</strong>:</p><p>Picture a scenario where multiple users seek to increment or decrement a numerical value. In the realm of locking, each user must patiently wait for their turn to acquire and release a lock on the numeric variable. This sequential approach often leads to contention and, consequently, reduced throughput.</p><p><strong>Lock-Free Reservation:</strong></p><p>Contrastingly, Lock-Free Reservation introduces a method where users can independently attempt to update a row without waiting for locks. In this approach, all users succeed with their reservations as long as the necessary constraints are met. There is no need for retries or contention. This asynchronous approach brings about a substantial improvement in throughput and resource utilization, ensuring efficient processing for all users.</p><p><em>To set the stage for deeper comprehension, let’s paint a vivid picture with two real-world scenarios.</em></p><p><strong>Scenario 1</strong> <strong>(Non-LFR)</strong>: Imagine Users A, B, and C eagerly shopping for Beyoncé tickets. User A finds a perfect ticket but hesitates to check out. User B attempts to add a similar ticket, only to be met with system hang-ups. User C faces the same frustrating ordeal. This ordeal stems from traditional locking methods, where a lock is clung to the ticket until User A decides to proceed. This glaring resource constraint highlights the pressing need for transaction concurrency, laying the foundation for Lock-Free Reservations.</p><p><strong>Scenario 2</strong> <strong>(With LFR)</strong>: Imagine User A, User B, and User C are all eager to secure tickets for an upcoming Beyoncé concert. User A decides to reserve a ticket and adds it to their cart with the intention of monitoring potential price changes before finalizing the purchase. User B, on the other hand, wants a ticket and places it in their cart but postpones the checkout process to discuss the choice with their family. Meanwhile, User C swiftly proceeds to add to the cart and check out a ticket.</p><p>User B later returns to the website and successfully completes the purchase for the ticket, while User A finalizes their purchase the following day. In this particular scenario, the implementation of Lock-Free Reservation offers users the freedom to add tickets to their carts without encountering discouraging messages such as “ticket unavailable” or “session error,” as long as the number of tickets requested does not exceed the number of tickets available, taking into account all the outstanding reservations. This empowerment ensures that multiple transactions can occur smoothly, eliminating any potential congestion or interruptions in the process.</p><p>Note: Comparing the two scenarios reveals why the second one is advantageous:</p><p><strong>Why Use Lock-Free Reservation?</strong></p><p>Scalability: Lock-Free Reservation helps in environments where scalability is a top priority. It enables multiple users to make progress simultaneously when updating hot data, which is especially important in today’s multi-core systems where parallelism is crucial.</p><p>Avoiding Blocking and Deadlocks: Unlike traditional locks, Lock-Free Reservation reduces the chances of blocking and deadlocks from occurring. Users can move forward independently, preventing bottlenecks.</p><p>Reducing Latency: Lock-Free Reservation shines in situations where reducing latency is essential. It allows tasks to be executed quickly without unnecessary delays, resulting in smoother and more responsive systems.</p><p><strong>Conclusion:</strong></p><p>In the ever-evolving world of concurrent programming, Lock-Free Reservation offers a valuable alternative to traditional locking mechanisms. It provides scalability, eliminates contention, prevents blocking and deadlocks, and minimizes latency. As a result, it becomes an essential tool for creating efficient and responsive systems. Lock-Free Reservation particularly shines in use cases like high-performance databases, where numerous updates happen concurrently to hot data. By embracing lock-free techniques, these databases serve multiple clients with low-latency responses and improved throughput, showcasing the versatility and power of this approach. Developers can harness the full potential of Lock-Free Reservation to build high-performance applications capable of handling a large number of concurrent updates to hot data.</p><p><strong>Ready to Test Drive Lock-Free Reservation?</strong></p><p>We’ve prepared an Oracle 23c database environment, ready for your experimentation with this feature. Follow our step-by-step guide that takes just around 10 minutes to unleash the power of Lock-Free Reservation. <a href="https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3716">Exploring the Power of Oracle 23c Database: Schema Privileges and Lock-Free Reservation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=734801b7f752" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>