Skip to content

Commit c6dff9c

Browse files
Incorporated feedback
Added level 2 sections and updated the smoothed out the jagged-reading sentences.
1 parent 65d1879 commit c6dff9c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/content/docs/apis/nerdgraph/examples/nerdgraph-rag.mdx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ To learn more about the knowledge connector, refer to [New Relic AI Knowledge co
2020

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

23+
## Create your RAG tool [#create-your-rag-tool]
24+
2325
<CollapserGroup>
2426
<Collapser id ="get-started" title ="Obtain your organization ID">
2527

@@ -42,7 +44,7 @@ Organization ID is required to perform mutations and queries in NerdGraph when s
4244

4345
Before performing this step, ensure you have "Org Product Admin" permissions.
4446

45-
A RAG tool acts as a specialized container within New Relic, that helps organize related documents and resources. Providing a clear name and accurate description while creating the RAG tool helps the LLM select the right tool for each prompt, ensuring relevant, context-aware responses.
47+
A RAG tool acts as a specialized container for organizing related documents and resources in New Relic. A clear name and accurate description for your RAG tools helps the LLM select the right tool for each prompt, ensuring relevant and context-aware responses.
4648

4749
To create a new RAG tool in your New Relic account, run the following `entityManagementCreateRagTool` mutation:
4850

@@ -117,8 +119,10 @@ mutation {
117119
```
118120

119121
You should save the `id` returned as you'll need it in later steps to link documents to the tool, verify relationships, and query the tool for relevant information in New Relic.
120-
121122
</Collapser>
123+
124+
## The indexing phase [#the-indexing-phase]
125+
122126
<Collapser id = "upload-document" title = "Upload a document via the Blob API">
123127

124128
<Callout variant="important">
@@ -219,7 +223,7 @@ curl -X POST https://blob-api.one-service.newrelic.com/v1/e/organizations/$ORGAN
219223
```
220224
### Next steps
221225

222-
After uploading, your document will be indexed and becomes available for search and retrieval by New Relic AI. Save the `entityGuid` from the response as you’ll need it to create a relationship with your RAG tool or to query the document in NerdGraph.
226+
After uploading your document, it is indexed and becomes available for New Relic AI to search and retrieve. You must save the `entityGuid` from the response to create a relationship with your RAG tool or to query the document in NerdGraph.
223227

224228
</Collapser>
225229
<Collapser id = "view-the-rag-document-entity-represented-in-nerdgraph" title = "View the RAG document entity represented in NerdGraph">
@@ -382,6 +386,9 @@ mutation {
382386
}
383387
```
384388
</Collapser>
389+
390+
## The retrieval phase [#the-retrieval-phase]
391+
385392
<Collapser id="query-to-see-relationships-between-rag-documents-and-rag-tools" title="Query to see relationships between RAG documents and RAG tools">
386393

387394
After creating a relationship between your RAG document and RAG tool, you can verify the association by querying relationships in NerdGraph. This helps ensure your document is properly linked and available for New Relic AI to use.
@@ -449,6 +456,7 @@ After creating a relationship between your RAG document and RAG tool, you can ve
449456
}
450457
}
451458
```
459+
452460
</Collapser>
453461
<Collapser id="query-the-rag-tool" title="Query the RAG tool">
454462

0 commit comments

Comments
 (0)