RAG Tool OCI Search with OpenSearch Guidelines for Generative AI Agents
You can bring your own (BYO) ingested and indexed OCI Search with OpenSearch data for the agents to use.
This topic provides guidelines and prerequisite tasks, assuming you're already familiar with OCI Search with OpenSearch.
Creating a Cluster
Use the Search and visualize data using OCI Search Service with OpenSearch tutorial to create a cluster and prepare data for your agent.
- Set up the OpenSearch Service Permissions.
- Create an OpenSearch cluster,
- Prerequisites to connect to OpenSearch cluster including the VCN, subnet, and security rules for OCI Search with OpenSearch.
- Add data to OCI OpenSearch.
- Create indexes for OpenSearch data.
For all the information you need about OCI Search with OpenSearch, see the OCI Search with OpenSearch documentation.
Creating a Secret
Before you add Search with OpenSearch data to a knowledge base in Generative AI Agents, you must create a secret for OpenSearch in OCI Vault service.
- In the OCI Console, Create a Vault.
- After the vault is active, create a key for the vault.
- For the vault, create a secret with the following specifics:
- Select the key that you created in the previous step.
- Manually enter the username and password for the OpenSearch cluster with the following format:
- Secret Type Template:
Plain-Text
- Secret Contents:
<OpenSearch-username>:<OpenSearch-password>
- Secret Type Template: