GraphRAG¶
Overview¶
GraphRAG builds and queries a knowledge graph from your project data within Dataiku.
The GraphRAG capability in DSS is made of two components:
GraphRAG Recipe A Visual Recipe that reads from a dataset, extracts relevant text and metadata, and builds a knowledge graph plus an associated “graph index” inside a local managed folder in Dataiku.
GraphRAG Search Tool An Agent Tool that enables you to perform searches against the generated GraphRAG index. It can be used within a Visual Agent to answer user queries, returning relevant text snippets and associated metadata from the knowledge graph.
Initial setup¶
This capability is provided by the GraphRAG plugin. See Installing plugins.
The plugin uses GraphRAG 3.3.0. Its managed code environment requires Python 3.11 or 3.12. The plugin declares its own dependencies and disables DSS core package installation. Rebuild the managed code environment after upgrading the plugin. The project must have access to a chat completion LLM and an embedding LLM through the LLM Mesh.
Upgrading from GraphRAG 1.x¶
After upgrading the plugin and updating its code environment, run the indexing recipe again before querying the index. Existing recipes retain their saved settings and can run without first reopening and saving them.
GraphRAG 3 no longer supports Node2Vec graph embeddings. The recipe retains these legacy settings for inspection but ignores them during indexing. If an existing recipe has graph embeddings enabled, the job logs a warning. Use Show legacy GraphRAG 1.x settings to inspect the saved values. Snapshot exports do not replace Node2Vec embeddings.
Existing recipes also retain their request pacing. If no delay was saved, the plugin applies the historical default of 0.3 seconds.
GraphRAG Recipe¶
The Graphrag Index Builder recipe is a standard Visual Recipe that reads from a single input dataset and writes its indexed output to a local managed folder of your choice. This output folder contains the knowledge graph files and the “graph index” used by subsequent queries.
Create the Recipe
Click + Recipe and choose GraphRAG from the plugin recipes list.

Configure Settings

- LLMs Settings
Select the Chat Completion LLM for entity extraction, summarization and community reports, and the Embedding LLM for text embeddings. Maximum Concurrent Requests limits parallel requests during indexing. Request Start Delay (seconds) controls request pacing for both models.
- Metadata Settings
Select the Text Column to index. Attribute Columns add metadata to the indexed text. Document’s Source and Document’s Title identify the columns containing source information and document titles.
- Chunking settings
Chunks Size and Overlap size control the size of text chunks and the overlap between them, in tokens. The recipe uses token chunking and standard LLM-based extraction. If a document spans several rows, select Grouping Columns for Multi-Row Documents to identify the rows belonging to the same document. The recipe combines their text before chunking.
- Entities extraction
Choose the entity types to extract, such as
organization,personorevent. The additional parameter groups control description summarization, claim extraction, community reports and clustering. Claim extraction is disabled by default; enable it to extract claims associated with entities and describe the kinds of claims to look for. Community reports summarize groups of related entities for search.- Summarization and community reports
Summarization Max Length (words) requests a word limit when combining entity or relationship descriptions. A single description can pass through unchanged. Community Report Max Length (words) requests a word limit for each report, while Community Report Max Input Length limits the input in tokens. Word limits are prompt instructions, not strict generation caps. Rebuild the index to apply changes.

- Snapshot exports
Enable Show Snapshot export parameters to export GraphML, embeddings or the raw graph alongside the index. These exports are optional and are not required by the search tool.
- Prompts
Enable Edit indexing prompts to customize entity extraction, summarization, community report and claim extraction prompts. Preserve their template variables and expected output format.
Run the Recipe
After configuring all settings, Run the recipe. The recipe performs a full build in temporary storage, then publishes the completed index in the output managed folder. It retains the two latest completed versions. Use a folder dedicated to this index and allow temporary disk space for a full build. Reload the search tool after a build to use the newest version; an already-running tool keeps its private copy of the index.
GraphRAG Search - Agent Tool¶
Once your knowledge graph has been built, you can query it using the GraphRAG Search tool. This tool is designed to be used within Dataiku’s Visual Agent interface.
Create the tool
In the Agent Tools section of your project, click + NEW AGENT TOOL and choose the GraphRAG tool from the list.

Parameters
- Managed Folder Containing the Index
Select the recipe’s output folder in the same project. Keep the recipe connected to the folder in the Flow: the tool reads its model and indexing configuration from that recipe.
- Search Type
Local Search answers focused questions using entities, relationships and relevant text chunks, such as finding information about a particular organization.
Global Search answers broader questions using community reports, such as identifying recurring themes across the dataset.
- Response Type and content description
Use Response Type to describe the desired answer format, such as a single paragraph or a numbered list. Description of the Available Content helps the Agent decide when to use the tool.
- Context Token Budget
Sets the context budget for local search and the budget per batch for global search. The default is 12,000 tokens. Global search keeps community reports whole, so an individual report can exceed this budget. Allow room for these reports, prompts and generated answers within the model’s context limit. This setting is not a total request or cost limit.
- Local search settings

Default Community Level controls community granularity for local search; higher values select more narrowly defined communities. It does not apply to global search.
Entity Retrieval Count and Relationship Retrieval Count control retrieval breadth, with defaults of 10 each. Increasing them can provide more context and increase latency. They are not strict caps: GraphRAG 3.3 can retrieve twice the entity count, and the relationship setting does not cap every relationship in the final context.
Source Text Context Proportion and Community Context Proportion allocate fractions of the context budget to source text and community reports. Their defaults are 0.5 and 0.15. Both values must be between 0 and 1 and their sum must not exceed 1. The remainder is available for entities, relationships and claims.
- Global search settings

Dynamic Community Selection uses additional LLM calls to select communities relevant to the question. It is disabled by default and can increase cost and latency. When enabled, Community Relevance Threshold sets the minimum score from 0 to 10, with a default of 1. A higher threshold selects fewer reports and can omit useful information. Score Community Summaries scores summaries instead of full reports to reduce scoring input, with less detail for selection. The answer still uses the selected reports in full.
Global Synthesis Data Token Budget limits the intermediate key points supplied to the final synthesis, excluding prompt and output tokens. The default is 12,000 tokens; very small budgets can exclude all key points.
Intermediate Response Length (words) and Final Response Length (words) request word limits for intermediate responses and the final answer, with defaults of 1,000 and 2,000. These are prompt instructions, not strict generation caps. For legacy prompts without a length instruction, keeping the loaded values preserves the existing behavior; changing a value adds the instruction in a temporary copy. Custom prompts containing
{max_length}use the configured value directly.- Verbose Mode
Logs loaded table counts, the context budget, search duration and returned source count. These diagnostics exclude questions, answers and document text.
Save and reload the tool after changing its search settings. These changes do not require rebuilding the index. Existing tools without the new fields retain their loaded GraphRAG settings, with dynamic community selection disabled. The Agent supplies only the query at invocation time; it does not choose these settings for each call.
Invoke the Tool
Once the tool is part of your Agent, you can use it in Agent Connect conversations, Prompt Recipe or using Dataiku API.
The tool returns a textual answer. Local search also returns source snippets when they are available in the search context. Global search relies on community reports and may return no document snippets.