---
title: "Undominated · Graph RAG Cost Optimizer: review, role & definition · Undominated.ai"
canonical: https://undominated.ai/agents/undominated-graph-rag-cost-optimizer/
description: "Tunes entity extraction prompts and graph traversal depths to balance retrieval precision and token spend."
---

# Undominated · Graph RAG Cost Optimizer: review, role & definition · Undominated.ai

> Tunes entity extraction prompts and graph traversal depths to balance retrieval precision and token spend.

[← Explore all agents](/agents/)

EVIDENCE REVIEW / Undominated.ai

# Undominated · Graph RAG Cost Optimizer

Tunes entity extraction prompts and graph traversal depths to balance retrieval precision and token spend.

 [Use this definition ↓](#setup)[Original source ↗](https://undominated.ai/resources/agents/undominated-graph-rag-cost-optimizer/definition.md)

SOURCE REVIEW

 Reviewed 2026-10-14
 Evidence 3 linked sources
 Publisher Undominated.ai
 Licence [MIT ↗](https://undominated.ai/resources/agents/undominated-graph-rag-cost-optimizer/LICENSE.txt)
 Revision d6ae63d57bc6
 [Read what was—and wasn’t—checked ↓](#review)

“Tunes entity extraction prompts and graph traversal depths to balance retrieval precision and token spend.”

 [Undominated.ai · upstream description ↗](https://undominated.ai/resources/agents/undominated-graph-rag-cost-optimizer/definition.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - Defines a specialist role, required evidence, handoff contract and explicit limits on external actions.
- Created for recurring evidence and comparison failures: missing facts remain unknown and every conclusion keeps its scope.
- It names a concrete failure mode: Your objective is to maximize the analytical precision of Graph RAG while bounding extraction and traversal token costs.

### A good fit for

 - Deploy when scaling Graph RAG systems to ensure graph extraction and query traversal costs remain affordable.
- Use the profile for this stated boundary: Return what you checked, the evidence, the decision, and what is still unknown.

### Weigh up before choosing

 - Optimizes extraction templates and traversal parameters.
- Portable role instructions require manual loading or adaptation to your host; they do not automatically register a native subagent.
- Public GitHub source availability is not yet verified; the complete download contains the reviewed source.
- A new npm install path is not yet verified. Use the complete source download.
- The profile requires evidence supplied in the task. It does not invent a price, a score, a rank, a context length, or a certification.
- Do not treat a vendor sentence as proof.

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - agents/undominated-graph-rag-cost-optimizer/AGENT.md

### Our findings

 - First-party resource authored by Undominated.ai; this is our own verification record, not an independent endorsement.
- The download preserves the complete source and supporting files. Its manifest hashes identify the exact bytes.
- One input rule the profile states is: **Extraction Prompt Optimization**: Streamline entity-relationship extraction prompts to minimize boilerplate token waste.
- One rule the profile states is: Return what you checked, the evidence, the decision, and what is still unknown.

### Not established by this review

 - Model compliance with these instructions on arbitrary tasks
- Native integration in every agent host
- Public GitHub source identity
- The new npm resource CLI installation

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Use the role in your project.

[Upstream setup instructions ↗](https://undominated.ai/resources/agents/undominated-graph-rag-cost-optimizer/definition.md)
 - Download the complete bundle from https://undominated.ai/resources/agents/undominated-graph-rag-cost-optimizer/bundle.zip and extract it into a new directory.
- Read AGENT.md, then load or adapt it using your host’s documented role or subagent mechanism.
- Provide the task scope, accepted evidence and required handoff fields. Grant only the tools the task needs.

### Before you start

 - An agent host that can accept explicit role instructions

### Compatibility

Portable Markdown role instructions

### Implementation

Markdown

### Local, explicit inputs

 - read:user-selected-local-file

### Cost model

MIT source at no charge. Your agent host or model provider may charge for use.

THE COMPLETE REVIEWED DEFINITION

## Read it before you reuse it.

Original source bytes, with attribution. Review the host-specific setup notes above.

 Copy definition ↗ [Download definition + licence ↗](/resources/agents/undominated-graph-rag-cost-optimizer/bundle.zip)[Raw Markdown ↗](/resources/agents/undominated-graph-rag-cost-optimizer/definition.md)
 # Undominated · Graph RAG Cost Optimizer

## Mission
You are the Graph RAG Cost Optimizer for Undominated.ai. Your objective is to maximize the analytical precision of Graph RAG while bounding extraction and traversal token costs.

## Core Responsibilities
1. **Extraction Prompt Optimization**: Streamline entity-relationship extraction prompts to minimize boilerplate token waste.
2. **Traversal Depth Calibration**: Limit multi-hop graph traversals to necessary degrees of separation ($k \le 2$) to prevent query token explosion.
3. **Hybrid RAG Routing**: Route simple factual lookups to cheap vector search while reserving expensive graph traversals for relational reasoning.

## Evidence

Use only measurements, documents, or catalogue rows supplied in this task. Cite the path or URL and the date on that record. If a number was not supplied, leave it missing. Targets named in the mission are goals, not results you have already measured.

## Limits

Do not publish a price, a score, a rank, a context length, or a certification. Do not treat a vendor sentence as proof. A checker pass on a fixture is not a production verdict.

## Output

Return what you checked, the evidence, the decision, and what is still unknown. Keep a corrected conclusion next to the earlier one.

The download contains AGENT.md . Keep its filename when placing it in the agent directory described above.

By **Undominated.ai**. [Exact upstream source ↗](https://undominated.ai/resources/agents/undominated-graph-rag-cost-optimizer/definition.md) · [Licence](/resources/agents/undominated-graph-rag-cost-optimizer/LICENSE.txt) · [Attribution](/resources/agents/undominated-graph-rag-cost-optimizer/ATTRIBUTION.txt)

SHA-256 d6ae63d57bc6511fda0d03bcc3e3561accc651b1458e0fbb00f049ed46bfb23d

 Read the applicable licence MIT License

Copyright (c) 2026 Undominated.ai

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [Original Undominated definition ↗](https://undominated.ai/resources/agents/undominated-graph-rag-cost-optimizer/definition.md) Checked 2026-10-07 https://undominated.ai/resources/agents/undominated-graph-rag-cost-optimizer/definition.md Supports: Workflow and input requirements, Stated limitations
- [MIT licence ↗](https://undominated.ai/resources/agents/undominated-graph-rag-cost-optimizer/LICENSE.txt) Checked 2026-10-07 https://undominated.ai/resources/agents/undominated-graph-rag-cost-optimizer/LICENSE.txt Supports: Redistribution terms and attribution
- [Complete source bundle ↗](https://undominated.ai/resources/agents/undominated-graph-rag-cost-optimizer/bundle.zip) Checked 2026-10-07 https://undominated.ai/resources/agents/undominated-graph-rag-cost-optimizer/bundle.zip Supports: Full local source, supporting files and integrity manifest

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### Undominated · Cache retention evaluator ↗ Audits needle-in-a-haystack retrieval accuracy under aggressive KV cache compression strategies.](/agents/undominated-cache-retention-evaluator/)[### Doublecheck ↗ Extracts the claims in AI-generated text, searches for sources, and reports links and risk flags for a person to check, without issuing verdicts.](/agents/github-doublecheck/)[### Undominated · 3D parallelism architect ↗ Architects balanced 3D parallelism configurations (TP, PP, DP, SP) for massive LLM serving clusters.](/agents/undominated-3d-parallelism-architect/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Find reusable instructions](/skills/)
- [Inspect connections](/mcp-servers/)
- [Build a toolkit](/tools/)
- [Choose the model](/compare/)
