• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

Set up RAG integration

With New Relic, you can enhance New Relic AI agents with Retrieval Augmented Generation (RAG) by associating your documentation, runbooks, incident retros, and even source code with your services. This process gives New Relic AI better insight into issues with your system. The tutorial outlines how to obtain your organization ID, create a RAG tool, and add your documents to the platform using the Blob API.

After adding your documents, you will create a relationship to associate them with the RAG tool. You can then verify your configuration by querying the relationships between the RAG documents and the RAG tool. The final step is to query the RAG tool itself to retrieve relevant, indexed information.

To learn more about the knowledge connector, refer to New Relic AI Knowledge connector.

Important

Before performing the following steps, ensure that you have "Org Product Admin" permissions.

To start indexing your content and benefit from the knowledge connector with New Relic AI, follow these mentioned steps:

Task 1: Create your RAG tool

Task 2

You have two options for providing context to your RAG tool. You can manually upload static files or set up an automated connector for living documentation.

Option A: Index your documents

If you have static documents such as PDFs, Word files, or local CSVs that are not hosted in a cloud knowledge base, use the Document Knowledge Connector. This method utilizes the Blob API to upload individual files directly to New Relic. Use this option for:

  • One-time context:Uploading specific runbooks or architectural diagrams that rarely change.

  • Local data: Indexing proprietary or internal files that live on your local machine rather than a wiki.

  • Agentic testing: Quickly providing a specific set of documents to an AI agent for a focused workflow.

Option B: Index your Confluence documents

If your organization uses Confluence for documentation, you can index your Confluence documents into New Relic without needing to use the Blob API. This option allows you to connect your Confluence instance and select specific documents or spaces to be indexed and associated with your RAG tool. Use this option to ensure New Relic AI always has the latest version of your Confluence pages.

Outcome: Automatic indexing triggered

Indexing will now happen automatically!

When the APPLY_TO relationship is created between your RAG settings and your RAG tool, the New Relic RAG indexer service initiates the following background process:

  1. The service uses your confluenceQuery to search your Confluence instance for matching content.

  2. It retrieves all matching pages and transforms them into a processable format.

  3. The content is split into smaller segments based on your chunkSize, chunkOverlap, and textSplitterType configuration.

  4. The service generates dense and sparse embeddings for each chunk and indexes them in the vector database (Pinecone).

  5. The connector will re-index your content periodically based on the intervalSeconds you defined to ensure the AI has access to the most up-to-date documentation.

Task 3: Retrieve relevant information

Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.