Search the Knowledge Base with an AI Agent

The recipe Oracle Integration - OpenSearch Build and Search Your Knowledge Base already includes an AI agent KnowledgeExpertAgent with optimized instructions for knowledge bases, an optimized agentic AI pattern for knowledge bases KnowledgeExpertReactPattern, and a knowledge base tool KnowledgeBaseSearchTool, with optimized description and guidelines for knowledge bases. The tool is based on the integration KnowledgeBaseSearch.

  1. In the navigation pane, select Projects.
  2. Select the project that contains your AI agent for your knowledge base: Build and Search Your Knowledge Base.
  3. In the left navigation pane, select AI Agents AI Agents icon.
  4. Run the agent.
    1. In the Agents section, find the AI agent to run: KnowledgeExpertAgent.
    2. Click Actions Actions icon, and select Run.
  5. Specify a knowledge base query.
    1. In the Test Agent page, enter your knowledge base query and click Send prompt to agent Send prompt to agent icon.

      The AI agent starts running and querying the knowledge base, then provides the answer.


      Test agent page for Knowledge Expert Agent with new run. Prompt is "what are the policies for new vendors in order acknowledgment". In the Resources section, the tool listed is KnowledgeBaseSearchTool.

  6. Look at the agent run to see the integrations that ran and find any errors.
    1. From the Test Agent page, click Back Back icon to return to the AI Agents page.
    2. Select Observe.
    3. In Integrations, check the integrations that ran.

      Look at the KnowledgeBaseSearch (1.0) integration as well as the system-generated integration KnowledgeExpertReactPattern.