Parameter Name | +Data Type | +Is it Required? | +Description | +
---|---|---|---|
`ragToolEntity` | +Object | +Yes | +The input object that contains the configuration for the new RAG tool. | +
`description` | +String | +Yes | +A clear and accurate description of the RAG tool's purpose. | +
`name` | +String | +Yes | +The unique name for your RAG tool. | +
`scope` | +Object | +Yes | +An object defining the context in which the tool will be created. | +
`scope.id` | +String | +Yes | +The unique ID of your organization (`${ORGANIZATION_ID}`). | +
`scope.type` | +String | +Yes | +The type of the scope, which must be `ORGANIZATION`. | +
Parameter Name | +Data Type | +Is it Required? | +Description | +
---|---|---|---|
`Api-Key` | +String | +Yes | +Your New Relic API key for authentication. | +
`NewRelic-Entity` | +JSON Object | +Yes | +Metadata about the document, such as its name. | +
`Content-Type` | +String | +Yes | +The format of the file being uploaded (e.g., `application/json`). | +
`payload` (`@incidents.json`) | +File | +Yes | +The document file you are uploading, specified by its file path. | +
Response | +Data Type | +Description | +
---|---|---|
`entityGuid` | +String | +The unique identifier for the uploaded RAG document. | +
`blobVersionEntity` | +Object | +Represents the version of the uploaded blob. | +
Parameter Name | +Data Type | +Is it Required? | +Description | +
---|---|---|---|
`id` | +String | +Yes | +The unique GUID of the RAG document to be retrieved. | +
Parameter Name | +Data Type | +Is it Required? | +Description | +
---|---|---|---|
`relationship` | +Object | +Yes | +The input object that contains the details for the relationship. | +
`source` | +Object | +Yes | +The source entity of the relationship, which is the RAG document. | +
`source.scope` | +String | +Yes | +The scope of the source entity, which must be `ORGANIZATION`. | +
`source.id` | +String | +Yes | +The unique GUID of the RAG document (`${RAG_DOCUMENT_GUID}`). | +
`target` | +Object | +Yes | +The target entity of the relationship, which is the RAG tool. | +
`target.scope` | +String | +Yes | +The scope of the target entity, which must be `ORGANIZATION`. | +
`target.id` | +String | +Yes | +The unique GUID of the RAG tool (`${RAG_TOOL_GUID}`). | +
`type` | +String | +Yes | +The type of the relationship, which must be `"INDEXED_FOR"`. | +
Parameter Name | +Data Type | +Is it Required? | +Description | +
---|---|---|---|
`relationships` | +Query | +Yes | +The query to retrieve relationships between entities. | +
`filter` | +Object | +No | +An object used to filter the relationships based on attributes. | +
`filter.sourceId` | +Object | +No | +An object to filter by the source entity's unique identifier. | +
`filter.sourceId.eq` | +String | +No | +The unique GUID of the RAG document to match. | +
Parameter Name | +Data Type | +Is it Required? | +Description | +
---|---|---|---|
`prompt` | +String | +Yes | +The natural language query you want the RAG tool to process. | +
`toolId` | +String | +Yes | +The unique GUID of the RAG tool to be queried. | +