Creating a RAG pipeline for Search with OpenSearch
Automatically generate code to set up and use an OCI Generative AI connector with Search with OpenSearch for an end-to-end a Retrieval-Augmented Generation (RAG) pipeline.
You might need to set up more of the network in order for the application to invoke the function that talks to the OpenSearch cluster. The network requires one of the following options:
- For a public subnet, an internet gateway, and two rules in the security list: a stateful egress rule, and an ingress rule allowing TCP traffic to use port 9200.
- For a private subnet, a service gateway, and a stateful egress rule in the security list.
For information on how to set up these options, see Creating the VCN and Subnets to Use with OCI Functions, if they don't exist already.
The application needs to be run from a VM instance within the same subnet as the cluster, or you can set up port forwarding to run the code locally. See Task 5: Query the OCI Search Service for examples of these options.
From the Console
If you select Kibana, the code generated can't be run as a standalone application. Instead, the generated code contains is split into sequential steps that you copy to run from the cluster's OpenSearch Dashboard.
The second text area contains template code showing how to perform queries after the pipeline is created.